1.1 --- a/BPQ/dtn-bpq Thu Jun 30 17:20:52 2011 +0100
1.2 +++ b/BPQ/dtn-bpq Thu Jun 30 18:29:31 2011 +0100
1.3 @@ -60,18 +60,19 @@
1.4 start)
1.5 echo -n "Starting DTN daemon..."
1.6 $SSD $SSDARGS --start -m --pidfile $PIDFILE -- $DAEMONARGS
1.7 + pgrep -f "$NAME">$PIDFILE
1.8 ;;
1.9
1.10 start_tidy)
1.11 echo -n "Starting DTN daemon (tidy mode)..."
1.12 $SSD $SSDARGS --start -m --pidfile $PIDFILE -- $DAEMONARGS -t
1.13 - pgrep -f "$REG">$PIDFILE
1.14 + pgrep -f "$NAME">$PIDFILE
1.15 ;;
1.16
1.17 init_db)
1.18 echo -n "Starting DTN daemon (init db)..."
1.19 $SSD $SSDARGS --start -m --pidfile $PIDFILE -- $DAEMONARGS --init-db
1.20 - pgrep -f "$REG">$PIDFILE
1.21 + pgrep -f "$NAME">$PIDFILE
1.22 ;;
1.23
1.24 stop)
1.25 @@ -79,6 +80,7 @@
1.26 $CONTROL $CONTROLARGS stop || true
1.27 echo -n "Making sure DTN daemon stops..."
1.28 $SSD $SSDARGS --stop --pidfile $PIDFILE || true
1.29 + rm -f $PIDFILE
1.30 ;;
1.31
1.32 *)