Thanks, to all.

I ended up going for the /etc/inittab as it works well enough and they can't
break into the shell coz' there ain't none. (Grin)...
If the server crashed it respawned it.. God knows what happens when there's
a critical error and it respawns all the time but then again it's Linux and
it going to be fine (sitting here fingers crossed)..

                -----Original Message-----
                From:   chesty [mailto:[EMAIL PROTECTED]]
                Sent:   Thursday, May 25, 2000 5:17 PM
                To:     George Vieira; [EMAIL PROTECTED]
                Subject:        Re: [SLUG] Starting up program which require
a tty in /etc/rc.d/rc.local

                On Thu, May 25, 2000 at 11:30:08AM +1000, George Vieira
wrote:
                > I want to start some game servers from /etc/rc.d/rc.local
but I read some
                > where that they require a tty/terminal to work in.
                > Is there any problem free way to do this or is it as easy
as running the
                > command with a >/dev/tty1 or something?
                > 
                > Suggestions?

                Just a suggestion, try screen.
                Maybe "screen -m -d /usr/local/games/gameprogram"


                  -m -d   Start  screen  in  "detached" mode. This creates a
                          new session but doesn't attach to it. This is use�
                          ful for system startup scripts.

                  -m -D   This  also  starts  screen in "detached" mode, but
                          doesn't fork a new process. The command  exits  if
                          the session terminates.



                -- 
                        chesty
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to