[PD] respawn PD with gui in Debian
B. Bogart
ben at ekran.org
Wed Feb 17 18:09:36 CET 2010
Hey Bart,
When the script running in xsession exits, it will restart X, so if you
have autologin, and PD crashing does cause an exit, then it will restart
automatically when it crashes. Note I don't find PD doing that on linux
very often...
Also if PD stalls without exiting you can get the gallery staff to just
"control-alt-backspace" to restart the patch without restarting the
computer.
.b.
Bart Koppe wrote:
> Hi Ben,
>
> I would like the script to be respawnd, in the rare case the script
> might crash. Afaik putting it in .xsessions only cares of starting the
> script, right?
>
> Chrs,
> bart
>
>
> On 02/17/2010 04:35 AM, B. Bogart wrote:
>> Hey Bart,
>>
>> Put the PD startup stuff in your ~/.xsession, and configure your
>> display manager to use xsession. (eg chosee 'Xclient script' in GDM)
>>
>> .b.
>> Bart Koppe wrote:
>>> Hi,
>>>
>>> I use PD-extended in Debian Lenny, this for a small media-installation.
>>> After the pc boots and logged into X, i would like pd (with gui) to
>>> start automatically.
>>> I made the script below and wanted to use that in /etc/inittab. It
>>> seems to start as root and does not show a gui either.
>>>
>>> The script itself works perfectly ok when I run it myself.
>>> How can I configure inittab correctly so it runs as user instead of
>>> root, and shows the gui to?
>>>
>>>
>>> My current inittab entry [to say: I don't know anything about inittab
>>> (blush) ]
>>> TY:23:respawn:/home/abortx/pd-daemon.sh
>>>
>>> the script (pd-daemon.sh)
>>> #!/bin/sh
>>> RUNNING=
>>> export DISPLAY=:0.0
>>> pd -open /home/abortx/pd/pdp-gem-bridge-3.pd &
>>> while true; do
>>> RUNNING=`pidof pd`
>>> if [ -z $RUNNING ]; then
>>> pd -open /home/abortx/pd/pdp-gem-bridge-3.pd &
>>> fi
>>> sleep 10
>>> done
>>>
>>> Thanks!
>>>
>>> Bart
>>>
>>> --
>>> -----/\/\/\/\/\/\-----
>>> Bart Koppe
>>> bk at a-bort dot org
>>> http://a-bort.org
>>> -----\/\/\/\/\/\/-----
>>>
>>> I love deadlines. I like the whooshing sound they make as they fly
>>> by.
- Douglas Adams
>>>
>>> _______________________________________________
>>> Pd-list at iem.at mailing list
>>> UNSUBSCRIBE and account-management ->
>>> http://lists.puredata.info/listinfo/pd-list
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
More information about the Pd-list
mailing list