Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Start on reboot" fails for a daemon; script works OK from commandline

Status
Not open for further replies.

Amazator

Programmer
Mar 8, 2006
13
IN
Hi,

Our company has designed a daemon that I would need to program to start on a reboot (in runlevel 5). I've created a daemon script for the same (which looks like all other daemon scripts.....the standard ones which accept start|stop|status|restart) and created symbolic links in rc5.d.

The problem is that the daemon seems to start on reboot but gets killed sometime shortly later. When I reboot and do a 'ps -ef' I don't see the process running. /var/log/boot.log shows that an attempt was made to start the daemon and the message was "Started successfully".

It starts alright when I manually issue a "/etc/rc5.d/<script> start" but the funny thing I described above seems to happen after every reboot.

Anyone faced anything like this before? Any ideas on how to investigate further? Thanks for ur time and help in advance!

-Amazator
 
is it a matter of startup order of daemons?
Does your daemon need another one or more than one to be started before it can start succesfully?


QatQat

Life is what happens when you are making other plans.
 
Hi,

No, there is no failure of dependency for my daemon. It runs in level 5 (full graphical interface level for Red Hat Linux I'm using). It has got to be something else...

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top