aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ]