Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Mar 2003 07:47:15 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Vijay.Singh@nokia.com
Cc:        questions@FreeBSD.ORG
Subject:   Re: init and process restart
Message-ID:  <20030314074715.GA86998@happy-idiot-talk.infracaninophi>
In-Reply-To: <4D7B558499107545BB45044C63822DDE01AF2A38@mvebe001.americas.nokia.com>
References:  <4D7B558499107545BB45044C63822DDE01AF2A38@mvebe001.americas.nokia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 13, 2003 at 02:52:42PM -0800, Vijay.Singh@nokia.com wrote:
> Hi. Is it possible to use init to restart some user critical processes if they die. Has any work been done in this area. Please CC me.

You mean in the same way that you can use /etc/inittab on SysV style
machines?  It's possible to do under *BSD, although not exactly
equivalent, by editing /etc/ttys.

Note that there's 

    * No concept of run-levels under BSD. Your process will be started
      on bootup by init as soon as the machine goes multiuser and
      continue running until init (and the machine) shuts down.

    * The process has to be associated with a tty.  Furthermore, it
      will prevent you running getty(8) on that tty, thus blocking it
      as a place for users to login.

You should also consider Dan Bernstein's daemontools package,
available in ports as sysutils/daemontools:

    http://pobox.com/~djb/daemontools.html

specifically the supervise and svc programs.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030314074715.GA86998>