From owner-freebsd-questions Tue Nov 28 4:53:48 2000 Delivered-To: freebsd-questions@freebsd.org Received: from pluto.senet.com.au (pluto.senet.com.au [203.56.239.150]) by hub.freebsd.org (Postfix) with ESMTP id 3498E37B400 for ; Tue, 28 Nov 2000 04:53:45 -0800 (PST) Received: from bytes4u.nodomain.yet (c25-p114.senet.com.au [203.152.232.243]) by pluto.senet.com.au (8.11.0/8.11.0) with ESMTP id eASCrfM82026 for ; Tue, 28 Nov 2000 23:23:41 +1030 (CST) (envelope-from linux@senet.com.au) Received: from localhost (linux@localhost) by bytes4u.nodomain.yet (8.11.1/8.9.3) with ESMTP id eASCqbE01496 for ; Tue, 28 Nov 2000 23:22:38 +1030 (CST) (envelope-from linux@bytes4u.nodomain.yet) Date: Tue, 28 Nov 2000 23:22:36 +1030 (CST) From: Benjamin Close To: freebsd-questions@freebsd.org Subject: Where to put 'top' in the init scripts Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hiall, As part of my prefered setup I like to have top running on a console when I boot my home pc. However, my attempts to get this task to happen have been invain. I tried to convince init to run it via an entry in /etc/ttys without success ( It would run but not display on the correct console, or init would respawn on the selected console too fast ). Next I tried a script in /usr/local/etc/rc.d which looks like: #!/bin/sh /usr/bin/top < /dev/ttyvb > /dev/ttyvb & echo -n " top" Whilst " top" is echoed, the top process seems to be killed by the time I get to log in. I believe I can put it in /etc/rc.local but would prefer to avoid this and get the init script in /usr/local/etc/rc.d/ to run it. I'm at a loss why it is killed/terminated. I know the process started as I've checked it's return value. But why doesn't it run? Cheers, Benjamin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message