diff options
author | Joey Hess <joey@kitenet.net> | 2012-10-28 13:55:27 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-10-28 13:55:27 -0400 |
commit | 331434d0bb2f7bd1996566abb20e975cb234c878 (patch) | |
tree | 5f273fc05ae004d794cf1ebdb8bc22f4ccc880ac /autoscripts | |
parent | 720ace23a372cabe1950f64bb0de279856a8e1b8 (diff) | |
download | debhelper-331434d0bb2f7bd1996566abb20e975cb234c878.tar.gz |
Revert "Support systemd in dh_installinit and postinst/postrm"
This reverts commit a0a7bb3433cba64677cf25c469d626552da9f356.
New patch sent.
Diffstat (limited to 'autoscripts')
-rw-r--r-- | autoscripts/postinst-init | 6 | ||||
-rw-r--r-- | autoscripts/postinst-init-nostart | 6 | ||||
-rw-r--r-- | autoscripts/postinst-init-restart | 6 | ||||
-rw-r--r-- | autoscripts/postrm-init | 7 |
4 files changed, 0 insertions, 25 deletions
diff --git a/autoscripts/postinst-init b/autoscripts/postinst-init index f5371ce8..2430b2c0 100644 --- a/autoscripts/postinst-init +++ b/autoscripts/postinst-init @@ -1,10 +1,4 @@ if [ -x "/etc/init.d/#SCRIPT#" ]; then - # In case this system is running systemd, we need to ensure that all - # necessary tmpfiles (if any) are created before starting. - if [ -d /sys/fs/cgroup/systemd ] ; then - systemd-tmpfiles --create >/dev/null || true - fi - update-rc.d #SCRIPT# #INITPARMS# >/dev/null invoke-rc.d #SCRIPT# start || #ERROR_HANDLER# fi diff --git a/autoscripts/postinst-init-nostart b/autoscripts/postinst-init-nostart index ec6bdbd6..7a1bd5e8 100644 --- a/autoscripts/postinst-init-nostart +++ b/autoscripts/postinst-init-nostart @@ -1,9 +1,3 @@ if [ -x "/etc/init.d/#SCRIPT#" ]; then - # In case this system is running systemd, we need to ensure that all - # necessary tmpfiles (if any) are created before starting. - if [ -d /sys/fs/cgroup/systemd ] ; then - systemd-tmpfiles --create >/dev/null || true - fi - update-rc.d #SCRIPT# #INITPARMS# >/dev/null || #ERROR_HANDLER# fi diff --git a/autoscripts/postinst-init-restart b/autoscripts/postinst-init-restart index 862f9cc3..35bba207 100644 --- a/autoscripts/postinst-init-restart +++ b/autoscripts/postinst-init-restart @@ -1,10 +1,4 @@ if [ -x "/etc/init.d/#SCRIPT#" ]; then - # In case this system is running systemd, we need to ensure that all - # necessary tmpfiles (if any) are created before starting. - if [ -d /sys/fs/cgroup/systemd ] ; then - systemd-tmpfiles --create >/dev/null || true - fi - update-rc.d #SCRIPT# #INITPARMS# >/dev/null if [ -n "$2" ]; then _dh_action=restart diff --git a/autoscripts/postrm-init b/autoscripts/postrm-init index 61dcfc53..1c292982 100644 --- a/autoscripts/postrm-init +++ b/autoscripts/postrm-init @@ -1,10 +1,3 @@ if [ "$1" = "purge" ] ; then update-rc.d #SCRIPT# remove >/dev/null fi - - -# In case this system is running systemd, we make systemd reload the unit files -# to pick up changes. -if [ -d /sys/fs/cgroup/systemd ] ; then - systemctl --system daemon-reload >/dev/null || true -fi |