Commit ddd0b7ef authored by Michael Biebl's avatar Michael Biebl
Browse files

Fix a regression in the init-functions hook wrt reload handling

that was was introduced when dropping the X-Interactive hack.
Closes: #696355
parent 77e933b5
systemd (44-7) UNRELEASED; urgency=low
* Fix a regression in the init-functions hook wrt reload handling that was
was introduced when dropping the X-Interactive hack. Closes: #696355
-- Michael Biebl <biebl@debian.org> Thu, 20 Dec 2012 02:20:14 +0100
systemd (44-6) unstable; urgency=low
[ Michael Biebl ]
......
......@@ -21,6 +21,8 @@ if [ -e /sys/fs/cgroup/systemd ]; then
_use_systemctl=1
# Some services can't reload through the .service file,
# but can through the init script.
prog=${0##*/}
service="${prog%.sh}.service"
if [ "$(systemctl -p CanReload show $service 2>/dev/null)" = "CanReload=no" ] && [ "$1" = "reload" ]; then
_use_systemctl=0
fi
......
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