summaryrefslogtreecommitdiffstats
path: root/encap/src/encap-profiles/daemontools-0.76.ep
diff options
context:
space:
mode:
Diffstat (limited to 'encap/src/encap-profiles/daemontools-0.76.ep')
-rw-r--r--encap/src/encap-profiles/daemontools-0.76.ep27
1 files changed, 24 insertions, 3 deletions
diff --git a/encap/src/encap-profiles/daemontools-0.76.ep b/encap/src/encap-profiles/daemontools-0.76.ep
index 5eb4ba338..569a9aa4f 100644
--- a/encap/src/encap-profiles/daemontools-0.76.ep
+++ b/encap/src/encap-profiles/daemontools-0.76.ep
@@ -12,7 +12,7 @@
<environment
variable="CC"
- value="gcc"
+ value="gcc -static-libgcc"
type="set"
/>
@@ -311,8 +311,8 @@ else
REALDIR=`pwd -P`
rm /service/$SERVICE
svc -dx . log
- rm -rf ${REALDIR}/supervise
- rm -rf ${REALDIR}/log/supervise
+ test -d ${REALDIR}/supervise && rm -rf ${REALDIR}/supervise
+ test -d ${REALDIR}/log/supervise && rm -rf ${REALDIR}/log/supervise
fi
exit 0
]]></include_file>
@@ -436,6 +436,27 @@ cd /usr/local/encap/daemontools-0.76 && ./package/run
printf "Finished daemontools postinstall script.\n"
]]></include_file>
+<include_file name="preremove" mode="0755"><![CDATA[
+#!/bin/sh
+
+printf "Running daemontools preremove script...\n"
+date
+
+for SERVICE in `ls /service`; do
+ if [ -h /service/$SERVICE ]; then
+ printf "INFO: Removing /service/$SERVICE ...\n"
+ /command/svrm /service/$SERVICE || true
+ fi
+done
+
+if [ -h /service/.svscan ]; then
+ printf "INFO: Removing /service/.svscan ...\n"
+ /command/svrm /service/.svscan || true
+fi
+
+printf "Finished daemontools preremove script.\n"
+]]></include_file>
+
<encapinfo>
description daemontools - a collection of tools for managing UNIX services
exclude src