supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Amrish Purohit <amrish.purohit@elitecore.com>
To: supervision@list.skarnet.org
Subject: endless loop at stage 2 of runit of run scripts of each service directories.
Date: Mon, 11 Aug 2008 11:58:15 +0530	[thread overview]
Message-ID: <489FDBFF.4020206@elitecore.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1898 bytes --]

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

[-- Attachment #2: Type: text/plain, Size: 38 bytes --]

Scanned by Cyberoam AV Scanning Engine

             reply	other threads:[~2008-08-11  6:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-11  6:28 Amrish Purohit [this message]
2008-08-11 14:13 ` Charlie Brady
2008-08-12  5:32   ` Amrish Purohit
2008-08-12 13:01     ` Charlie Brady

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=489FDBFF.4020206@elitecore.com \
    --to=amrish.purohit@elitecore.com \
    --cc=supervision@list.skarnet.org \
    /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).