Running daemon from rc.sysinit

From: Loic BAUDRY (slowlo_at_caramail-et-spiritueux.com)
Date: 07/30/03


Date: 30 Jul 2003 21:34:30 GMT


Hello.
 
Before i expose my probleme, i apologize for my english.
Here is my problem :
 
I want to run a daemon in the begining of the rc.sysinit script. Not in an
/etc/rc.Nd script. My daemon stay alive during the execution of the
rc.sysinit script but it seems to be killed when the runlevel change ( to 3
or 5 but i think the result is the same with others runlevels ).
My question is : is there any way to run a program in rc.sysinit script
and to keep it alive until the shutdown without having to restart it when
changing runlevel ?
Must i change my daemon code ?
Must i change the way i start my daemon in the rc.sysinit script ? (
started with function daemon() which use 'initlog' to run the daemon ).
 
any help will really be apprecied.
thanks for reading.
 
Loic.

-- 
Ce message a ete poste via la plateforme Web club-Internet.fr
This message has been posted by the Web platform club-Internet.fr
http://forums.club-internet.fr/


Relevant Pages

  • Re: Confused about init scripts expectations
    ... I am developing a daemon application to handle datalogger ... I have developed the init script that is ... I attempt to start the daemon using the services configuration GUI ... figure is that the EOF signal is not being received by the program. ...
    (Fedora)
  • Re: [opensuse] BASH: has $COLUMNS gone nuts?
    ... You do realize that lines & columns are dynamic values which at least some terminals and login daemons will continuously adjust right? ... What the above shows is that I dragged the corner of my PuTTY window (which was connected to sshd, not every terminal client nor every server daemon does this) making the window a little larger and without issuing any commands, and no possibility that any bashrc or inclusions got executed, the values changed, because the terminal told the daemon and the daemon told it's child processes. ... Try calling them from within a script: ... Although, I would also actually be perverse and say that since the SCO systems predate most others, including ALL linux, that you could actually make the argument that the dwindling remaining production sco boxes in the world are right and the 90 million linux & freebsd & sun boxes are all wrong. ...
    (SuSE)
  • Re: script "chaining"
    ... If a task (such as a report) would take too long to run while attached to the browser, the current system writes the data to a database file. ... The daemon checks that file every 10 seconds and executes the task, writing the data back to database. ... If you take the A out of LAMP you can write a php script like a bash script or a perl script and execute it. ...
    (comp.lang.php)
  • Debian PHP jabber client deamon
    ... to prevent PHP stopping the script. ... // disconnect from the Jabber server ... Here's the daemon script for running it in Debian. ... # Gracefully exit if the package has been removed. ...
    (comp.lang.php)
  • Re: script "chaining"
    ... bill wrote: ... If a task would take too long to run while attached to the browser, the current system writes the data to a database file. ... The daemon checks that file every 10 seconds and executes the task, writing the data back to database. ... If you take the A out of LAMP you can write a php script like a bash script or a perl script and execute it. ...
    (comp.lang.php)