Commit e32b9e9b authored by Martin Pitt's avatar Martin Pitt

Trigger a systemctl daemon-reload when init scripts are installed or removed

This fixes startup failures from packages which install init.d scripts with
--no-start or from "make install" third-party project installs.

Closes: #766429
parent cfcf9258
systemd (215-15) UNRELEASED; urgency=medium
[ Adam Conrad ]
* debian/systemd.{triggers,postinst}: Trigger a systemctl daemon-reload
when init scripts are installed or removed (Closes: #766429)
-- Martin Pitt <mpitt@debian.org> Wed, 08 Apr 2015 10:53:38 +0200
systemd (215-14) unstable; urgency=medium
[ Michael Biebl ]
......
......@@ -12,9 +12,19 @@ _update_catalog() {
journalctl --update-catalog || true
}
# Update Message Catalogs database in response to dpkg trigger
# Update Message Catalogs database and reload in response to dpkg triggers
if [ "$1" = "triggered" ]; then
_update_catalog
shift
for trigger in "$@"; do
case $trigger in
/usr/lib/systemd/catalog)
_update_catalog
;;
/etc/init.d)
_systemctl daemon-reload
;;
esac
done
exit 0
fi
......
interest-noawait /usr/lib/systemd/catalog
interest-noawait /etc/init.d
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment