mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-12 09:20:01 +00:00
Fall back to init script based reload if the .service file doesn't support it.
This commit is contained in:
parent
b1fae33fd4
commit
e505319b86
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,6 +1,8 @@
|
||||
systemd (28-1) UNRELEASED; urgency=low
|
||||
|
||||
* New upstream version.
|
||||
* Fall back to the init script reload function if a native .service file
|
||||
doesn't know how to reload. Closes: #628186
|
||||
|
||||
-- Tollef Fog Heen <tfheen@debian.org> Wed, 08 Jun 2011 16:14:31 +0200
|
||||
|
||||
|
||||
5
debian/init-functions
vendored
5
debian/init-functions
vendored
@ -35,6 +35,11 @@ if [ -e /sys/fs/cgroup/systemd ] ; then
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
# Some services can't reload through the .service file,
|
||||
# but can through the init script.
|
||||
if [ "$(systemctl -p CanReload show $service 2>/dev/null)" = "CanReload=no" ] && "$1" = "reload"; then
|
||||
_use_systemctl=0
|
||||
fi
|
||||
esac
|
||||
else
|
||||
export _SYSTEMCTL_SKIP_REDIRECT="true"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user