supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: John Nielsen <knoglen@tele2.fr>
Subject: /etc/runit/3 not executing correctly...
Date: Mon, 26 Jul 2004 18:10:13 +0200	[thread overview]
Message-ID: <200407261810.13156.knoglen@tele2.fr> (raw)

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 


             reply	other threads:[~2004-07-26 16:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-26 16:10 John Nielsen [this message]
2004-07-26 16:18 ` Laurent Bercot
2004-07-26 18:06   ` John Nielsen
2004-07-27 10:43     ` Gerrit Pape
2004-07-27 16:23       ` John Nielsen
2004-07-27 16:55         ` John Nielsen
2004-07-27 18:26           ` John Nielsen
2004-07-27 18:42             ` Charlie Brady
2004-07-28  8:25             ` Gerrit Pape
2004-07-28 17:03               ` John Nielsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200407261810.13156.knoglen@tele2.fr \
    --to=knoglen@tele2.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).