# HG changeset patch # User Pascal Bellard # Date 1329583863 -3600 # Node ID e26a09e68fcb59513cf68b98a76cfebb6cce5d3c # Parent 6cf4a602d2f267c9b25b4a6e7fee6f5e9c8dd2de get-softmodem-driver: update start script diff -r 6cf4a602d2f2 -r e26a09e68fcb get-softmodem-driver/stuff/martian.init --- a/get-softmodem-driver/stuff/martian.init Sat Feb 18 17:43:17 2012 +0100 +++ b/get-softmodem-driver/stuff/martian.init Sat Feb 18 17:51:03 2012 +0100 @@ -22,7 +22,7 @@ case "$1" in start) - if [ -f $PIDFILE ] ; then + if active_pidfile $PIDFILE martian_modem ; then echo "$NAME already running." exit 1 fi @@ -31,7 +31,7 @@ status ;; stop) - if [ ! -f $PIDFILE ] ; then + if ! active_pidfile $PIDFILE martian_modem ; then echo "$NAME is not running." exit 1 fi @@ -41,7 +41,7 @@ status ;; restart) - if [ ! -f $PIDFILE ] ; then + if ! active_pidfile $PIDFILE martian_modem ; then echo "$NAME is not running." exit 1 fi diff -r 6cf4a602d2f2 -r e26a09e68fcb get-softmodem-driver/stuff/slmodem.init --- a/get-softmodem-driver/stuff/slmodem.init Sat Feb 18 17:43:17 2012 +0100 +++ b/get-softmodem-driver/stuff/slmodem.init Sat Feb 18 17:51:03 2012 +0100 @@ -16,7 +16,7 @@ case "$1" in start) - if [ -f $PIDFILE ] ; then + if active_pidfile $PIDFILE slmodemd ; then echo "$NAME already running." exit 1 fi @@ -25,7 +25,7 @@ status ;; stop) - if [ ! -f $PIDFILE ] ; then + if ! active_pidfile $PIDFILE slmodemd ; then echo "$NAME is not running." exit 1 fi @@ -34,7 +34,7 @@ status ;; restart) - if [ ! -f $PIDFILE ] ; then + if ! active_pidfile $PIDFILE slmodemd ; then echo "$NAME is not running." exit 1 fi