LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-06-2008, 12:13 PM   #1
azoudis
LQ Newbie
 
Registered: May 2005
Location: Niagara Falls
Distribution: suse 9.x
Posts: 10

Rep: Reputation: 0
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.
 
Old 10-06-2008, 01:09 PM   #2
azoudis
LQ Newbie
 
Registered: May 2005
Location: Niagara Falls
Distribution: suse 9.x
Posts: 10

Original Poster
Rep: Reputation: 0
"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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
perl script as daemon in 8.04lts azoudis Ubuntu 1 10-06-2008 01:01 PM
Perl socket daemon twantrd Programming 10 01-10-2008 04:04 AM
Converting a Windows Perl script to a Linux Perl script. rubbercash Programming 2 07-19-2004 10:22 AM
How to run a perl script as a daemon ? paonethestar Programming 17 11-06-2003 08:53 PM
Including methods from a perl script into another perl script gene_gEnie Programming 3 01-31-2002 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration