Commit 9b170567 authored by Leigh Stoller's avatar Leigh Stoller

Use daemon wrapper, the forwarder dies off when it cannot get to Utah

for a long time.
parent 2827e183
...@@ -19,8 +19,9 @@ if [ $CLUSTER_PORTAL == "" ]; then ...@@ -19,8 +19,9 @@ if [ $CLUSTER_PORTAL == "" ]; then
exit 0 exit 0
fi fi
wrapper=$TBROOT/sbin/daemon_wrapper
forwarder=/usr/local/libexec/pubsub_forward forwarder=/usr/local/libexec/pubsub_forward
pidfile=/var/run/pubsub_forward.pid pidfile=/var/run/pubsub_forward_wrapper.pid
certfile=$TBROOT/etc/emulab.pem certfile=$TBROOT/etc/emulab.pem
keyfile=$TBROOT/etc/emulab.key keyfile=$TBROOT/etc/emulab.key
remoteport=@CLUSTER_PUBSUBD_PORT@ remoteport=@CLUSTER_PUBSUBD_PORT@
...@@ -29,8 +30,8 @@ args="-s $CLUSTER_PORTAL -p $remoteport -K $keyfile -C $certfile -S" ...@@ -29,8 +30,8 @@ args="-s $CLUSTER_PORTAL -p $remoteport -K $keyfile -C $certfile -S"
case "$1" in case "$1" in
start|faststart|quietstart|onestart|forcestart) start|faststart|quietstart|onestart|forcestart)
if [ -x $forwarder ]; then if [ -x $forwarder ]; then
$forwarder -e $pidfile $args $wrapper -n pubsub_forward $forwarder -f $args
echo -n "igforwarder"; echo -n " igforwarder wrapper";
fi fi
;; ;;
stop|faststop|quietstop|onestop|forcestop) stop|faststop|quietstop|onestop|forcestop)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment