Date: Wed, 20 Jan 2021 15:57:47 +0000 From: RW <rwmaillists@googlemail.com> To: freebsd-questions@freebsd.org Subject: Re: Attempt to write an rc.d script not working Message-ID: <20210120155747.405915e8@gumby.homeunix.com> In-Reply-To: <trinity-9070d165-bd6b-4eac-b2f1-4223e6bdb79e-1611156815575@3c-app-mailcom-lxa02> References: <trinity-9070d165-bd6b-4eac-b2f1-4223e6bdb79e-1611156815575@3c-app-mailcom-lxa02>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210120155747.405915e8>