[PD-cvs] scripts/debian/init.d pd,1.2,1.3
Hans-Christoph Steiner
eighthave at users.sourceforge.net
Thu Dec 7 03:47:43 CET 2006
Update of /cvsroot/pure-data/scripts/debian/init.d
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28755/init.d
Modified Files:
pd
Log Message:
fixed bug in overridding DAEMON in default/pd and added comments
Index: pd
===================================================================
RCS file: /cvsroot/pure-data/scripts/debian/init.d/pd,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pd 11 Apr 2006 05:54:09 -0000 1.2
--- pd 7 Dec 2006 02:47:41 -0000 1.3
***************
*** 31,37 ****
SCRIPTNAME=/etc/init.d/$NAME
- # Gracefully exit if the package has been removed.
- test -x $DAEMON || exit 0
-
# options
RUNPDDAEMON=no
--- 31,34 ----
***************
*** 50,53 ****
--- 47,53 ----
fi
+ # Gracefully exit if the package has been removed.
+ test -x $DAEMON || exit 0
+
if [ "$RUNPDDAEMON" != "yes" ];then
echo "Pd not configured to run as a daemon. Edit /etc/default/$NAME."
***************
*** 61,64 ****
--- 61,65 ----
fi
+ # this is meant for running Pd as a server, so it turns off everything
PARAMS="-nogui -noaudio -nomidi $OPTIONS"
***************
*** 70,74 ****
#
d_start() {
! # /bin/su - arw -c "/usr/bin/pd -nogui" > /tmp/pd-`date +20%y-%m-%d_%H.%M.%S`.log 2>&1 &
start-stop-daemon -v --start --quiet --background --make-pidfile \
--chuid $USER --pidfile $PIDFILE --exec $DAEMON -- $PARAMS
--- 71,76 ----
#
d_start() {
! # if you want a log, use this line (until Pd gets syslog support)
! # /bin/su - $USER -c "$DAEMON $PARAMS" > /tmp/pd-$DATE.log 2>&1 &
start-stop-daemon -v --start --quiet --background --make-pidfile \
--chuid $USER --pidfile $PIDFILE --exec $DAEMON -- $PARAMS
***************
*** 81,86 ****
start-stop-daemon --stop --quiet --pidfile $PIDFILE \
--user $USER --name $NAME --retry 5
! # echo "quit;quit;quit;" | /usr/bin/pdsend $PORT
! # sleep 5
# /usr/bin/killall -KILL pd || echo "Warning: $DESC was not running"
}
--- 83,87 ----
start-stop-daemon --stop --quiet --pidfile $PIDFILE \
--user $USER --name $NAME --retry 5
! # if you used the /bin/su command in d_start(), you need this to stop Pd:
# /usr/bin/killall -KILL pd || echo "Warning: $DESC was not running"
}
More information about the Pd-cvs
mailing list