supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Lloyd Zusman <ljz@asfast.com>
Subject: Re: Testing runit-init, stuck in stage 2 ???
Date: Sat, 26 Jun 2004 17:10:49 -0400	[thread overview]
Message-ID: <m3smciuism.fsf@asfast.com> (raw)
In-Reply-To: <m38yeaksy0.fsf@asfast.com>

I figured this out.  Based on the contents of my /etc/inittab, I needed
to make my /etc/runit/1 look like the following:

  #!/bin/sh
  # system one time tasks

  PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin

  ##/etc/init.d/rcS
  ##/etc/init.d/rmnologin
  /etc/rc.d/rc.sysinit
  /etc/rc.d/rc 5

  touch /etc/runit/stopit
  chmod 0 /etc/runit/stopit

I had commented out the "rcS" and "rmnologin" calls, but I had forgotten
to add the "rc.sysinit" and "rc 5" calls.

Now, for the arduous task of service migration (Step 5 in the
documentation).

Excelsior ...



Lloyd Zusman <ljz@asfast.com> writes:

> [ ... ]
>
>   # Contents of /etc/inittab
>
>   id:5:initdefault:
>
>   si::sysinit:/etc/rc.d/rc.sysinit
>
>   l0:0:wait:/etc/rc.d/rc 0
>   l1:1:wait:/etc/rc.d/rc 1
>   l2:2:wait:/etc/rc.d/rc 2
>   l3:3:wait:/etc/rc.d/rc 3
>   l4:4:wait:/etc/rc.d/rc 4
>   l5:5:wait:/etc/rc.d/rc 5
>   l6:6:wait:/etc/rc.d/rc 6
>
>   ca::ctrlaltdel:/sbin/shutdown -t3 -r now
>
>   pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"
>
>   pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"
>
>   1:2345:respawn:/sbin/mingetty tty1
>   2:2345:respawn:/sbin/mingetty tty2
>   3:2345:respawn:/sbin/mingetty tty3
>   4:2345:respawn:/sbin/mingetty tty4
>   ## Comment out tty5 so we can test runit-init
>   ##5:2345:respawn:/sbin/mingetty tty5
>   6:2345:respawn:/sbin/mingetty tty6
>
>   # Run xdm in runlevel 5
>   x:5:respawn:/etc/X11/prefdm -nodaemon

-- 
 Lloyd Zusman
 ljz@asfast.com
 God bless you.



  reply	other threads:[~2004-06-26 21:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-26 19:41 Lloyd Zusman
2004-06-26 21:10 ` Lloyd Zusman [this message]
2004-06-26 22:29   ` Charlie Brady
2004-06-26 23:13     ` Lloyd Zusman

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=m3smciuism.fsf@asfast.com \
    --to=ljz@asfast.com \
    /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).