From 50df750b2ee85c24d15c76a5b00ab1924934254b Mon Sep 17 00:00:00 2001 From: Daniel Joseph Barnhart Clark Date: Wed, 21 Feb 2007 14:11:50 +0000 Subject: EncapPackages: Change to use initctl with Upstart git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2863 ce84e21b-d406-0410-9b95-82705330c041 --- encap/src/encap-profiles/runit-1.7.2.ep | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'encap') 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" ]]> @@ -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" -- cgit v1.2.3-1-g7c22