diff options
Diffstat (limited to 'encap/src/encap-profiles/runit-1.7.2.ep')
-rw-r--r-- | encap/src/encap-profiles/runit-1.7.2.ep | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/encap/src/encap-profiles/runit-1.7.2.ep b/encap/src/encap-profiles/runit-1.7.2.ep index b1c8bd450..7545fa356 100644 --- a/encap/src/encap-profiles/runit-1.7.2.ep +++ b/encap/src/encap-profiles/runit-1.7.2.ep @@ -159,8 +159,9 @@ if [ -f /etc/inittab ]; then fi if [ -d /etc/event.d ]; then printf "Installing to /etc/event.d/SV (Upstart) ...\n" + initctl stop SV 2>/dev/null || true cd ${ENCAP_SOURCE}/${ENCAP_PKGNAME} && cp upstart.boot /etc/event.d/SV - kill -HUP 1 + initctl start SV fi printf "Finished runit postinstall script.\n" ]]></include_file> @@ -176,8 +177,8 @@ fi if [ -d /etc/event.d ]; then if [ -f /etc/event.d/SV ]; then printf "Removing /etc/event.d/SV (Upstart) ...\n" + initctl stop SV || printf "SV already stopped...\n" rm /etc/event.d/SV - kill -HUP 1 fi fi printf "Finished runit preremove script.\n" |