How to make process working in background?
freebsd-listen at fabiankeil.de
Sun Aug 30 09:56:48 UTC 2015
zhup <zhup at tutamail.com> wrote:
> I have below startup script.
> My question is how to make this process working in background?
> . /etc/rc.subr
> load_rc_config $name
> run_rc_command "$1"
If the program itself has no flag to go into the background
you can use daemon(8) for this:
> Why I am not able to stop this process?
> root at mys:~ # /etc/rc.d/test stop
> Stopping test.
> Waiting for PIDS: 5146 5147Stopping oscam.
> Waiting for PIDS: 5146 5147
Did you verify that the PIDs are correct?
Specifying a pidfile may help.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 181 bytes
Desc: OpenPGP digital signature
More information about the freebsd-questions