X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=blobdiff_plain;f=recipes%2Fpandora-system%2Fpandora-libpnd%2Frc.pndnotifyd;h=1e3799fe1ccb05e7c316ab8a8e4ae616e8a4a07b;hp=448279b65906d4ce3ad91483f04c84163c573741;hb=248ee3c4e8a298bd184d674996883aa88c325ca6;hpb=51aa7d2d89ddc5fcae060e1016a20d5a2fc65425;ds=sidebyside diff --git a/recipes/pandora-system/pandora-libpnd/rc.pndnotifyd b/recipes/pandora-system/pandora-libpnd/rc.pndnotifyd index 448279b..1e3799f 100644 --- a/recipes/pandora-system/pandora-libpnd/rc.pndnotifyd +++ b/recipes/pandora-system/pandora-libpnd/rc.pndnotifyd @@ -8,13 +8,13 @@ # Default-Stop: 0 1 6 ### END INIT INFO -PID=`pidof -o %PPID -x pndnotifyd` PNDNOTIFY='/usr/bin/pndnotifyd' #adjust DESC="Pandora PND Deamon" NAME="pndnotifyd" d_stop() { + PID=`pidof -o %PPID -x pndnotifyd` if [ $PID ] then kill $PID @@ -24,6 +24,7 @@ d_stop() { } d_start() { + PID=`pidof -o %PPID -x pndnotifyd` if [ $PID ] then echo "$DESC: $NAME already running." @@ -33,6 +34,7 @@ d_start() { } d_reload() { + PID=`pidof -o %PPID -x pndnotifyd` if [ $PID ] then kill -HUP $PID @@ -43,26 +45,22 @@ d_reload() { case "$1" in start) - echo -n "Starting $DESC: $NAME" + echo "Starting $DESC: $NAME" d_start & - echo "." ;; stop) - echo -n "Stopping $DESC: $NAME" + echo "Stopping $DESC: $NAME" d_stop - echo "." ;; reload) - echo -n "Reloading $DESC: $NAME" + echo "Reloading $DESC: $NAME" d_reload - echo "." ;; restart|force-reload) - echo -n "Restarting $DESC: $NAME" + echo "Restarting $DESC: $NAME" d_stop sleep 1 d_start - echo "." ;; *) echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2