diff -Nru init-system-helpers-1.45/debian/changelog init-system-helpers-1.45ubuntu1/debian/changelog --- init-system-helpers-1.45/debian/changelog 2016-09-20 09:27:43.000000000 -0500 +++ init-system-helpers-1.45ubuntu1/debian/changelog 2017-05-22 07:35:13.000000000 -0500 @@ -1,3 +1,11 @@ +init-system-helpers (1.45ubuntu1) yakkety; urgency=medium + + * invoke-rc.d: When running under upstart check is service is 'enabled' + instead of relying on rc*.d links. This allows upstart only services to be + able to start with invoke-rc.d. (LP: #1691474) + + -- Chris J Arges Mon, 22 May 2017 07:34:47 -0500 + init-system-helpers (1.45) unstable; urgency=medium * Revert "invoke-rc.d, service: Asynchronously reload systemd units" diff -Nru init-system-helpers-1.45/script/invoke-rc.d init-system-helpers-1.45ubuntu1/script/invoke-rc.d --- init-system-helpers-1.45/script/invoke-rc.d 2016-09-20 09:27:43.000000000 -0500 +++ init-system-helpers-1.45ubuntu1/script/invoke-rc.d 2017-05-22 07:34:41.000000000 -0500 @@ -380,7 +380,7 @@ ### LOCAL POLICY: Enforce that the script/unit is enabled. For SysV init ### scripts, this needs a start entry in either runlevel S or current runlevel ### to allow start or restart. -if [ -n "$is_systemd" ]; then +if [ -n "$is_systemd" ] || [ -n "$is_upstart" ]; then case ${ACTION} in start|restart) # Note that systemd 215 does not yet support is-enabled for SysV scripts, @@ -391,6 +391,8 @@ RC=104 elif systemctl --quiet is-active "${UNIT}" 2>/dev/null; then RC=104 + elif initctl show-config -e "$INITSCRIPTID" | grep -q '^ start on'; then + RC=104 else RC=101 fi