perl script as daemon in 8.04lts
You last visited: 12-19-06
Hello all, long time no "c", so much has changed in 2 years etc etc etc /smalltalk
I am converting a kiosk style system from suse to ubuntu due to dma && video acceleration problems on suse, that work fine on ubuntu.
My problem is that the init process does not seem to work as advetised. I had 3 init scipts that ran in order that worked fine on suse, yet only 1/3 worked.
suse overview:
X init script
fvwm2 init scipt (display for x)
perlscript (videos run though xv/x11, browser/apps have no title/border/handles)
In ubuntu, X started fine but i was unable to start fvwm2 from its own init script, even tho it's "S" number was later than the X init script and it required what X provided. I solved this by having xinit call fvwm2 (and its options) all from 1 script. So now i have:
Ubuntu overview
Xinit with fvwm script
perlscipt
(added both with "update-rc.d ______ defaults" then "mv S20___ S90___" and "update-rc.d Xd start 90 2 3 4 5 . stop 10 S 0 1 6 ."
I need the perl script to run as a daemon and cant seem to get this working. What confuses the issue is that if i log in a root and run
/etc/init.d/rc2.d/perlscipt start
or explicitly
/path/to/perlscipt.pl
it works 100% fine
I have tried everyhing, my init scipt is based off the /etc/init.d/skeleton. I have the proper "/path/to" in the init script.
What am i missing here? Thanks for reading all the way down through this wordy problem.
|