RW <rwmailli...@googlemail.com> writes:

Hello,

> I don't think you can do it like that. IIRC when you try to stop a
> daemon it doesn't just kill the process by pid, it also sanity checks
> the command in case the daemon has died and the pid was reused.
> Since "daemon" wont show-up in the ps output it can't be in the command
> variable.

Ok, makes sense.

> I think you need to write a start function, something like this:
>
>
> start_cmd="phpfastcgi_start"
> command="/usr/local/bin/php-cgi"
>
> phpfastcgi_start(){  
>     echo "starting phpfastcgi."
>    /usr/sbin/daemon -f -p ${pidfile} ${command}
> }

Fine, it works much better now.

Thanks a lot 

Kind Regards

Éric Masson

-- 
 je n'ai jamais repondu aux AAD car je pensais qu'on pouvais pas en tant
 que personne qui propose un newgroup...
 -+- A in GNU : C'est quoi un groupe de discussion d'ailleurs ? -+-
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to