From 79a8958bc2502912e2fbba8ca15ed1eb2377d614 Mon Sep 17 00:00:00 2001 From: Daniel Joseph Barnhart Clark Date: Tue, 20 Feb 2007 03:08:47 +0000 Subject: 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 --- encap/src/encap-profiles/ostiary-3.4.ep | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'encap/src/encap-profiles/ostiary-3.4.ep') 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} -&1 exec /usr/local/sbin/ostiaryd -c /usr/local/etc/ostiary.cfg -v -D ]]> -&1 -exec /command/multilog t /usr/local/var/multilog/ostiary +exec /usr/local/bin/svlogd -tt /usr/local/var/svlogd/ostiary ]]> $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" ]]> @@ -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" -- cgit v1.2.3-1-g7c22