From owner-freebsd-questions@FreeBSD.ORG Mon Sep 19 14:08:12 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 0251816A41F for ; Mon, 19 Sep 2005 14:08:12 +0000 (GMT) (envelope-from roger@audioweb.no) Received: from mail48-s.fg.online.no (mail48-s.fg.online.no [148.122.161.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 761C443D46 for ; Mon, 19 Sep 2005 14:08:11 +0000 (GMT) (envelope-from roger@audioweb.no) Received: from aw001 (ti531210a080-8090.bb.online.no [83.109.223.158]) by mail48.fg.online.no (8.12.11/8.12.11) with ESMTP id j8JE877u004925 for ; Mon, 19 Sep 2005 16:08:08 +0200 (CEST) From: "Roger O. Svenning" To: Date: Mon, 19 Sep 2005 16:08:12 +0200 Message-ID: <001001c5bd23$93687a50$6401a8c0@aw001> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal Subject: Starting interactive processes at boot time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2005 14:08:12 -0000 Hi 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? Regards Roger O. Svenning ----------------- Bod=F8 - Norway