summaryrefslogtreecommitdiffstats
path: root/encap/src
diff options
context:
space:
mode:
authorDaniel Joseph Barnhart Clark <dclark@pobox.com>2007-02-21 14:11:50 +0000
committerDaniel Joseph Barnhart Clark <dclark@pobox.com>2007-02-21 14:11:50 +0000
commit50df750b2ee85c24d15c76a5b00ab1924934254b (patch)
treeee2d73bd92335fc65e3727d7018e383e7846cb8f /encap/src
parent66491723d9dbb7be2a7fb9da2e0ca01457a63603 (diff)
downloadbcfg2-50df750b2ee85c24d15c76a5b00ab1924934254b.tar.gz
bcfg2-50df750b2ee85c24d15c76a5b00ab1924934254b.tar.bz2
bcfg2-50df750b2ee85c24d15c76a5b00ab1924934254b.zip
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
Diffstat (limited to 'encap/src')
-rw-r--r--encap/src/encap-profiles/runit-1.7.2.ep5
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"