diff options
author | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2007-02-20 03:08:47 +0000 |
---|---|---|
committer | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2007-02-20 03:08:47 +0000 |
commit | 79a8958bc2502912e2fbba8ca15ed1eb2377d614 (patch) | |
tree | b5d0538885190d05eb4a469c20f5cc12e4aa0933 /encap/src/encap-profiles/ostiary-3.4.ep | |
parent | 603402bbe43510ef50a10819e95854d58dd63cc4 (diff) | |
download | bcfg2-79a8958bc2502912e2fbba8ca15ed1eb2377d614.tar.gz bcfg2-79a8958bc2502912e2fbba8ca15ed1eb2377d614.tar.bz2 bcfg2-79a8958bc2502912e2fbba8ca15ed1eb2377d614.zip |
EncapPackages: Move from daemontools to runit to avoid any issues with redistributing patched daemontool binaries.
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2856 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'encap/src/encap-profiles/ostiary-3.4.ep')
-rw-r--r-- | encap/src/encap-profiles/ostiary-3.4.ep | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/encap/src/encap-profiles/ostiary-3.4.ep b/encap/src/encap-profiles/ostiary-3.4.ep index 5199c3abd..da57d6891 100644 --- a/encap/src/encap-profiles/ostiary-3.4.ep +++ b/encap/src/encap-profiles/ostiary-3.4.ep @@ -81,26 +81,27 @@ rmdir etc # daemons should be in /usr/local/sbin test -d sbin || mkdir sbin mv bin/ostiaryd sbin/ostiaryd -# daemontool stuff +# runit stuff test -d var || mkdir var -test -d var/svc.d || mkdir var/svc.d -test -d var/svc.d/ostiary || mkdir var/svc.d/ostiary -test -d var/svc.d/ostiary/log || mkdir var/svc.d/ostiary/log +test -d etc || mkdir etc +test -d etc/sv || mkdir etc/sv +test -d etc/sv/ostiary || mkdir etc/sv/ostiary +test -d etc/sv/ostiary/log || mkdir etc/sv/ostiary/log # Make "this encap is installed" sentinal file available in /usr/local/var/encap test -d var/encap || mkdir var/encap touch var/encap/${ENCAP_PKGNAME} </prepackage> -<include_file name="var/svc.d/ostiary/run" mode="0755"><![CDATA[ +<include_file name="etc/sv/ostiary/run" mode="0755"><![CDATA[ #!/bin/sh exec 2>&1 exec /usr/local/sbin/ostiaryd -c /usr/local/etc/ostiary.cfg -v -D ]]></include_file> -<include_file name="var/svc.d/ostiary/log/run" mode="0755"><![CDATA[ +<include_file name="etc/sv/ostiary/log/run" mode="0755"><![CDATA[ #!/bin/sh exec 2>&1 -exec /command/multilog t /usr/local/var/multilog/ostiary +exec /usr/local/bin/svlogd -tt /usr/local/var/svlogd/ostiary ]]></include_file> <include_file name="postinstall" mode="0755"><![CDATA[ @@ -111,8 +112,8 @@ LOG=${BASEDIR}/postinstall.log exec > $LOG 2>&1 printf "Running ostiary postinstall script...\n" date -test -d /usr/local/var/multilog || mkdir /usr/local/var/multilog -test -d /usr/local/var/multilog/ostiary || mkdir /usr/local/var/multilog/ostiary +test -d /usr/local/var/svlogd || mkdir /usr/local/var/svlogd +test -d /usr/local/var/svlogd/ostiary || mkdir /usr/local/var/svlogd/ostiary printf "Finished ostiary postinstall script.\n" ]]></include_file> @@ -122,9 +123,9 @@ printf "Finished ostiary postinstall script.\n" printf "Running ostiary preremove script...\n" date -if [ -h /service/ostiary ]; then - printf "INFO: Removing /service/ostiary...\n" - /command/svrm /service/ostiary +if [ -h /usr/local/var/service/ostiary ]; then + printf "INFO: Removing /usr/local/var/service/ostiary...\n" + rm /usr/local/var/service/ostiary fi printf "Finished ostiary preremove script.\n" |