Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: philippe peltier on June 19, 2003, 03:43:58 PM
-
Hello!
I'm in big trouble. I need to create a new daemon that starts at boot time on my sme server 5.5.
1 -
I wrote the C source, compiled and tested it via a tty, everything is ok if I launch it vial
#> 'programname' &
But i suspect there is a way to tell the program in the source that it IS a daemon and be able to launch it without the '&' directive.
Does anyone know how ?
2 -
How do I do to make it autostart. I know how on standard linux, but not on sme server where there are templates even in the rc7.d... I would like it to run from runlevel 5 to 7, that would be fine.
Can anyone help ???
tnx in advance, I'm pretty stucked...
-
> #> 'programname' &
> But i suspect there is a way to tell the program in the
> source that it IS a daemon and be able to launch it without
> the '&' directive.
Writing a daemon is not trivial. If the program works OK with the &, why bother?
> Does anyone know how ?
> 2 -
> How do I do to make it autostart. I know how on standard
Drop a script in /etc/e-smith/events/local
Michiel