hi,
to autostart on linux
put a symlink in your rc3.d (or with whatever runlevel you boot by default, this is set in /etc/inittab)
called S19pd_start (any number, but be sure, all other important processes are started before/lower numbers...) to a script named pd_start
linux then calls this script with the argument "start" when booting. the script "pd_start" looks like:
################################# beginning of script #############################
#! /bin/sh
# Check for missing binaries (stale symlinks should not happen) PD_BIN=/usr/local/pd/bin/pd test -x $PD_BIN || exit 5
case "$1" in
start)
echo -n "Starting PD"
## Start daemon with startproc(8). If this fails
## the return value is set appropriately by startproc.
/usr/local/pd/bin/pd -nogui -noadc -audiobuf 20 -r 22050
-lib /usr/local/lib/pd/pdp/pdp
-lib /usr/local/lib/pd/externs/zexy
-path /home/marius
-path /usr/local/lib/pd/pdp
-path /usr/local/lib/pd/externs/zexy
/home/marius/application.pd &
;;
## mind the &!!!
stop)
echo -n "Shutting down FOO "
## Stop daemon with killproc(8) and if this fails
## killproc sets the return value according to LSB.
kill 'cat /var/run/pd.pid'
;;
restart)
## Stop the service and regardless of whether it was
## running or not, start it again.
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
################################## end of script #######################
marius.
----- Original Message ----- From: "rob canning" rscanning@eircom.net To: pd-list@iem.at Sent: Wednesday, January 28, 2004 1:15 PM Subject: [PD] auto login + auto run pd on linux
hi, i have made an installation using pd and am migrating it to a planetccrma
box from a windows machine - i need the patch to open automaticaly when the system boots up - in windows i just put a shortcut to my .bat file in the startup folder which worked fine. how do i do this in Linux?
also i have stupidly locked myself out my root account by: chsh -s /sbin/nologin i thought this would bypass the login procedure - whoops! how can i get my root account back? this is my real problem at the moment thanks, rob www.robcanning.utvinternet.com
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list