From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/530 Path: main.gmane.org!not-for-mail From: John Nielsen Newsgroups: gmane.comp.sysutils.supervision.general Subject: /etc/runit/3 not executing correctly... Date: Mon, 26 Jul 2004 18:10:13 +0200 Message-ID: <200407261810.13156.knoglen@tele2.fr> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1090858184 7750 80.91.224.253 (26 Jul 2004 16:09:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Jul 2004 16:09:44 +0000 (UTC) Original-X-From: supervision-return-768-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Jul 26 18:09:34 2004 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1Bp82g-0000Dl-00 for ; Mon, 26 Jul 2004 18:09:34 +0200 Original-Received: (qmail 3053 invoked by uid 76); 26 Jul 2004 16:09:49 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 3047 invoked from network); 26 Jul 2004 16:09:49 -0000 X-T2-Posting-ID: 21VuvZ4U3/c613HI43WgqQ== Original-To: supervision@list.skarnet.org User-Agent: KMail/1.6.2 Content-Disposition: inline Xref: main.gmane.org gmane.comp.sysutils.supervision.general:530 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:530 Hi all, Im trying to set up runit on my system and has hit a wall. Every time the 3 script executes svwaitdown, it exits the script without finishing. The script looks like this. I have put in echo lines so i can see exactly when the script stops. #!/bin/sh echo 1 exec 2>&1 echo 2 PATH=/sbin:/bin:/usr/sbin:/usr/bin echo 3 LAST=0 echo 4 test -x /etc/runit/reboot && LAST=6 echo 5 echo 'Waiting for getties to stop...' echo 6 svwaitdown -xk -t10 /var/service/getty-* echo 7 echo 'Waiting for services to stop...' echo 8 svwaitdown -xk -t30 /var/service/* echo 9 With this script the last number being printet is "6". After that, it just gives me the normal "Unmounting any remaining file systems. Now you can turn off the power", so it exits somewhere while executing the first svwaitdown command. The other scripts are working fine. Has anyone run into this problem before? At this point I would even welcome RTFM pointers. :-) Regards, John