Starting interactive processes at boot time

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Tue Sep 20 10:44:48 PDT 2005


"Roger O. Svenning" <roger at 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.


More information about the freebsd-questions mailing list