LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   perl script as daemon in 8.04lts (https://www.linuxquestions.org/questions/ubuntu-63/perl-script-as-daemon-in-8-04lts-674600/)

azoudis 10-06-2008 12:13 PM

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.

azoudis 10-06-2008 01:09 PM

"Please post your thread once and in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate of http://www.linuxquestions.org/questi....04lts-674600/.

Next time consider using the "edit" button. Thanks in advance."

yea sorry i dont know how that happened, also i tried to use edit and it gave an invalid post # or some other issue that i didnt bother reporting....

that aside any ideas?


All times are GMT -5. The time now is 10:05 PM.