From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1907 Path: news.gmane.org!not-for-mail From: Amrish Purohit Newsgroups: gmane.comp.sysutils.supervision.general Subject: endless loop at stage 2 of runit of run scripts of each service directories. Date: Mon, 11 Aug 2008 11:58:15 +0530 Message-ID: <489FDBFF.4020206@elitecore.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-ONLmt660X0PI0ua30wYICA==" X-Trace: ger.gmane.org 1218436042 31329 80.91.229.12 (11 Aug 2008 06:27:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2008 06:27:22 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2142-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Aug 11 08:28:13 2008 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1KSQt3-000827-Gx for gcsg-supervision@gmane.org; Mon, 11 Aug 2008 08:28:13 +0200 Original-Received: (qmail 2561 invoked by uid 76); 11 Aug 2008 06:27:36 -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 2553 invoked from network); 11 Aug 2008 06:27:36 -0000 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) X-Cyberoam-Version: 9.5.6.03 X-Cyberoam-smtpxy-version: 0.0.4.2 X-Cyberoam-Proto: SMTP X-Cyberoam-AV-Policy: None X-Cyberoam-AS-Policy: Global Spam Policy Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1907 Archived-At: --=-ONLmt660X0PI0ua30wYICA== Message-ID: <489FDBFF.4020206@elitecore.com> Date: Mon, 11 Aug 2008 11:58:15 +0530 From: Amrish Purohit User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: supervision@list.skarnet.org Subject: endless loop at stage 2 of runit of run scripts of each service directories. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Cyberoam-Version: 9.5.6.03 X-Cyberoam-smtpxy-version: 0.0.4.2 X-Cyberoam-Proto: SMTP X-Cyberoam-AV-Policy: None X-Cyberoam-AS-Policy: Global Spam Policy hi all, i am using fedora distribution. i want to deploy runit on my distribution. i have following changes in my distribution. mkdir /etc/runit/services in this directory i have created directories for service cpuspeed, getty and bash prompt to emulate runlevel 1 of sys V init. ls /etc/runit/services cpuspeed getty1 getty2 getty3 getty4 getty5 bash in each directory i have created a run script and a supervise directory. ls services/cpuspeed run supervise here is the format of run script --------------------------------------- #!/bin/bash exec /etc/rc.d/init.d/cpuspeed start ------------------------------------------- like this i have prepared other directories getty and bash supervise directory contains following empty files control lock ok pid stat status now it is turn of scripts 1 and 2 in script /etc/runit/1 #!/bin/bash PATH=/command:/bin:/sbin:/usr/bin:/usr/sbin export PATH /etc/rc.sysinit ----------------------------------------------- in script /etc/runit/2 #!/bin/bash PATH=/command:/bin:/sbin:/usr/bin:/usr/sbin export PATH runsvdir -P /var/services ---------------------------------------------- ln -s /etc/runit/runlevels/runlevel1 /var/services /etc/runit/runlevels directory contains directory of runlevel1 runlevel2 in directory runlevel1 there is link to services directories described above, at kernel command line i have changed init=/sbin/runit Problem: ====== as the system starts up, stage 1 starts nicely and rc.sysinit scripts does it works. but problem occurs at stage2 . In stage2 run scripts of each services directories executes in infinite loop and i cannot get the bash shell. at time of bash script, error is " no job control ". here is endless loop of run scripts of each service directories. i have navigated web but i cannot get any help. Please help me fix this problem. so i can simulate each runlevel. regds Amrish Purohit --=-ONLmt660X0PI0ua30wYICA== Content-Type: text/plain Content-Transfer-Encoding: base64 U2Nhbm5lZCBieSBDeWJlcm9hbSBBViBTY2FubmluZyBFbmdpbmU= --=-ONLmt660X0PI0ua30wYICA==--