Date: 20 Sep 2005 13:44:39 -0400 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: <freebsd-questions@freebsd.org> Subject: Re: Starting interactive processes at boot time Message-ID: <44ll1rtz08.fsf@be-well.ilk.org> In-Reply-To: <001001c5bd23$93687a50$6401a8c0@aw001> References: <001001c5bd23$93687a50$6401a8c0@aw001>
next in thread | previous in thread | raw e-mail | index | archive | help
"Roger O. Svenning" <roger@audioweb.no> writes: > I have this game server process "nwserver" that previously was started > at boot time trough /etc/rc.local > > I could send commands and read results whenever needed trough the use of > 'watch -i -W console' > > I now want to start this process trough svscan and supervise at boot > time with the rc.d/svscan.sh which works fine except for two related > things: > > 1: The process doesn't attach to a tty and the thread responsible for > the process console goes into an infinite loop unless you suppress the > interactive mode trough a -quiet switch. > > 2: My web based administrations script need some way of writing to and > reading from the process console. > > How can I make the process attach to a tty at boot time? Give it a tty of its own? You don't want to start the process in a startup script, because then anything it wants to do interactively will hold up the boot process.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44ll1rtz08.fsf>