Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Oct 2005 17:15:21 +0200
From:      Marco Molteni <molter@tin.it>
To:        hackers@freebsd.org
Subject:   rc scripts: how to start a process that doesn't daemonize itself?
Message-ID:  <200510191715.21582.molter@tin.it>

next in thread | raw e-mail | index | archive | help
Hi,

I have a program that I would like to control via a rc script,
say /usr/local/etc/rc.d/myprog

problem is this program needs to be put explicitly in background.

I was playing with things like

command="/usr/sbin/daemon /usr/local/bin/myprog"

but this obviously works only for the start case.

Should I just override start() completely or is there a
common way to do it? I don't think I can simply pass a "&" somewhere...

thanks
marco



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510191715.21582.molter>