From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/499 Path: main.gmane.org!not-for-mail From: Lloyd Zusman Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Testing runit-init, stuck in stage 2 ??? Date: Sat, 26 Jun 2004 17:10:49 -0400 Sender: news Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088284838 4334 80.91.224.253 (26 Jun 2004 21:20:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 26 Jun 2004 21:20:38 +0000 (UTC) Original-X-From: supervision-return-737-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Jun 26 23:20:31 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 1BeKb9-0001CU-00 for ; Sat, 26 Jun 2004 23:20:31 +0200 Original-Received: (qmail 23779 invoked by uid 76); 26 Jun 2004 21:20:53 -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 23773 invoked from network); 26 Jun 2004 21:20:53 -0000 X-Injected-Via-Gmane: http://gmane.org/ Original-To: supervision@list.skarnet.org Original-Lines: 65 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: hippo.asfast.com User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:ThWg4uaKk87Kt9Ys0Re0iRGuTdM= Xref: main.gmane.org gmane.comp.sysutils.supervision.general:499 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:499 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 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.