aboutsummaryrefslogtreecommitdiff
path: root/scripts/debian
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-04-11 05:54:09 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-04-11 05:54:09 +0000
commitcbd63d3ab4b8e360b47be1bf5027a7046c509057 (patch)
treea3da8c4e32bae4ca33b2294ee66fae864921d6bb /scripts/debian
parentaba52d5042d729b91e8345e88cea48980d6cfe95 (diff)
set some proper defaults
svn path=/trunk/; revision=4876
Diffstat (limited to 'scripts/debian')
-rw-r--r--scripts/debian/default/pd7
-rwxr-xr-xscripts/debian/init.d/pd9
2 files changed, 11 insertions, 5 deletions
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 ]