From cbd63d3ab4b8e360b47be1bf5027a7046c509057 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 11 Apr 2006 05:54:09 +0000 Subject: set some proper defaults svn path=/trunk/; revision=4876 --- scripts/debian/default/pd | 7 ++++--- scripts/debian/init.d/pd | 9 +++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'scripts/debian') diff --git a/scripts/debian/default/pd b/scripts/debian/default/pd index d4801312..b6317dce 100644 --- a/scripts/debian/default/pd +++ b/scripts/debian/default/pd @@ -1,8 +1,9 @@ # this needs to be "yes" for it to start automatically -RUNPDDAEMON=yes +#RUNPDDAEMON=yes # load your patches here -OPTIONS="-open /home/hans/cvs/pure-data/doc/tutorials/networking/chat-server.pd" - +#OPTIONS="-open /home/hans/cvs/pure-data/doc/tutorials/networking/chat-server.pd" +# if you want to use a different user. AVOID USING "root"! Pd is not secure! +#USER=nobody diff --git a/scripts/debian/init.d/pd b/scripts/debian/init.d/pd index 70cae357..05ba46b0 100755 --- a/scripts/debian/init.d/pd +++ b/scripts/debian/init.d/pd @@ -26,7 +26,7 @@ set -e PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC="Pure Data" NAME=pd -DAEMON=/usr/local/bin/$NAME +DAEMON=/usr/bin/$NAME PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME @@ -36,7 +36,12 @@ test -x $DAEMON || exit 0 # options RUNPDDAEMON=no USER=nobody -PORT=34985 +#PORT=34985 + +# TODO: write daemon.pd patch which is always started and provides basic +# commands, like start, stop, quit, dsp, etc. over a TCP port + +# TODO: figure out how to have a log of the stderr/console output # Read config file if it is present. if [ -r /etc/default/$NAME ] -- cgit v1.2.1