init.d scripts
David Kramer
david at thekramers.net
Mon Jan 30 10:32:39 EST 2006
I'm trying to write an init.d script for a FC4 system. Does anyone have a
good tutorial for that?
The thing that I'm stuck on is that the "daemon" function appears to expect
the first non-dashed parameter as the thing to run, and it also uses that
parameter to form the pidfile name.
My problem is I am setting up to run a PHP script, so the command needs to be
"php myscriptname.php foo bar", which I assume would create a pidfile called
php.pid, which is not good. I would rather not make a separate one-line
script to call it.
Any advice?
More information about the Discuss
mailing list