Attempt to write an rc.d script not working

RW rwmaillists at googlemail.com
Wed Jan 20 15:57:54 UTC 2021


On Wed, 20 Jan 2021 16:33:35 +0100
Rocky Hotas wrote:


> dummy2_start()
> {
>         nc -l 59002
> }
...
> Trying again, as root, `service dummy2 start', it prints nothing this
> time, and the prompt does not return.
> 
> What am I doing wrong?

daemons do a double fork into the background. nc will run in the
foreground and block the start command. Probably you should use
daemon(8) to start nc.




More information about the freebsd-questions mailing list