From owner-freebsd-questions@FreeBSD.ORG Tue Sep 20 17:44:48 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BA1F16A41F for ; Tue, 20 Sep 2005 17:44:48 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAEFF43D77 for ; Tue, 20 Sep 2005 17:44:41 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 28571 invoked from network); 20 Sep 2005 17:44:40 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail22.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 20 Sep 2005 17:44:40 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id EC6073E; Tue, 20 Sep 2005 13:44:39 -0400 (EDT) Sender: lowell@be-well.ilk.org To: "Roger O. Svenning" To: References: <001001c5bd23$93687a50$6401a8c0@aw001> From: Lowell Gilbert Date: 20 Sep 2005 13:44:39 -0400 In-Reply-To: <001001c5bd23$93687a50$6401a8c0@aw001> Message-ID: <44ll1rtz08.fsf@be-well.ilk.org> Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: Starting interactive processes at boot time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2005 17:44:48 -0000 "Roger O. Svenning" 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.