summaryrefslogtreecommitdiffstats
path: root/funcweb/init-scripts/funcwebd
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-07-28 14:18:01 +0300
committermakkalot <makkalot@gmail.com>2008-07-28 14:18:01 +0300
commit8746ffb25fc2c138e457489d38bce1a8cd92835c (patch)
tree370514f3f40405c34ce5ce24d9ce17dddfa426a3 /funcweb/init-scripts/funcwebd
parent6e47882e0dcb86e8b360dc17ac2541fe6875e55d (diff)
parent391a052ccedb1195290aceeea500fc6aea86afdb (diff)
merge from new_layout to master
Diffstat (limited to 'funcweb/init-scripts/funcwebd')
-rwxr-xr-xfuncweb/init-scripts/funcwebd21
1 files changed, 21 insertions, 0 deletions
diff --git a/funcweb/init-scripts/funcwebd b/funcweb/init-scripts/funcwebd
index 01ee280..11be5e2 100755
--- a/funcweb/init-scripts/funcwebd
+++ b/funcweb/init-scripts/funcwebd
@@ -28,6 +28,8 @@
SERVICE=funcwebd
PROCESS=funcwebd
DAEMON=/usr/bin/funcwebd
+CERTMASTER=/usr/bin/certmaster
+CERTMASTER_PROC=certmaster
CONFIG_ARGS="--daemon"
@@ -66,6 +68,25 @@ fi
RETVAL=0
start() {
+
+ ps wt? | grep "$CERTMASTER" 2>&1 > /dev/null
+ if [ "x$?" = "x0" ]; then
+ CERT_RVAL=0
+ echo "certmaster is running"
+ else
+ CERT_RVAL=3
+ echo "certmaster is not running"
+ fi
+
+ if [ $CERT_RVAL -eq 3 ]; then
+ echo -n $"Starting certmaster daemon: "
+ START_DAEMON $CERTMASTER_PROC $CONFIG_ARGS
+ CERT_RVAL=$?
+ echo
+ [ $CERT_RVAL -eq 0 ] && touch /var/lock/subsys/$CERTMASTER_PROC
+ fi
+
+
echo -n $"Starting funcweb server"
START_DAEMON $PROCESS $CONFIG_ARGS
RETVAL=$?