diff options
author | Didier Raboud <odyx@debian.org> | 2016-06-01 08:38:03 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2016-06-01 08:39:24 +0200 |
commit | 55de165c92148520d36bb41c7bf8641057c460db (patch) | |
tree | 5440f8484c3e1f70ea35f9f4534201dab0367674 /init-functions.d | |
parent | 64ca16105b84e1309f5407537b103d6a7bfc54da (diff) |
Revert "Add 01-upstart-lsb from the upstart package, and make executing rc.d scripts no-op if there is an upstart job for that script"
This reverts commit 3ce3a48572b780c9ee3162d117762725bdf325d8.
The upstart package should have shipped this file in the first place.
Upstart is now removed from Debian.
This file should probably be adopted by any future (or other-distro) upstart package.
Closes: #825946
Thanks-To: Michael Biebl <biebl@debian.org>
Diffstat (limited to 'init-functions.d')
-rw-r--r-- | init-functions.d/01-upstart-lsb | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/init-functions.d/01-upstart-lsb b/init-functions.d/01-upstart-lsb deleted file mode 100644 index 92205ce..0000000 --- a/init-functions.d/01-upstart-lsb +++ /dev/null @@ -1,31 +0,0 @@ -# Allow executing init.d scripts as upstart jobs - -# Operate against system upstart, not session -unset UPSTART_SESSION - -# Bail if there is an upstart job, and called via RC -_RC_SCRIPT=${0#/etc/rc?.d/[KS]??*} -if [ -r "/etc/init/${_RC_SCRIPT}.conf" ] && which initctl >/dev/null \ - && initctl version 2>/dev/null | grep -q upstart -then - exit 0 -fi - -_UPSTART_JOB=${0#/etc/init.d/} -if [ -r "/etc/init/${_UPSTART_JOB}.conf" ] && which initctl >/dev/null \ - && initctl version 2>/dev/null | grep -q upstart \ - && initctl status ${_UPSTART_JOB} 2>/dev/null 1>/dev/null -then - # Upstart configuration exists for this job and we're running under upstart - case "${1:-}" in - start|stop|status|reload) - # Action is a valid upstart action - exec ${1} ${_UPSTART_JOB} - ;; - restart|force-reload) - # Map restart to the usual sysvinit behavior. - stop ${_UPSTART_JOB} || : - exec start ${_UPSTART_JOB} - ;; - esac -fi |