From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2196 Path: news.gmane.org!not-for-mail From: Charlie Brady Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Installing on Centos Date: Thu, 9 May 2013 11:08:33 -0400 (EDT) Message-ID: References: <20130507105625.GA2125@home.power> <494F0531-B180-4C08-B435-39CB3BCB5F3D@opscode.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: ger.gmane.org 1368112116 8541 80.91.229.3 (9 May 2013 15:08:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 May 2013 15:08:36 +0000 (UTC) Cc: "" To: Peter Hickman Original-X-From: supervision-return-2430-gcsg-supervision=m.gmane.org@list.skarnet.org Thu May 09 17:08:36 2013 Return-path: Envelope-to: gcsg-supervision@plane.gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1UaSSR-0008Un-Bo for gcsg-supervision@plane.gmane.org; Thu, 09 May 2013 17:08:35 +0200 Original-Received: (qmail 28119 invoked by uid 76); 9 May 2013 14:01:20 -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 28111 invoked from network); 9 May 2013 14:01:19 -0000 X-X-Sender: charlieb@e-smith.charlieb.ott.istop.com In-Reply-To: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2196 Archived-At: On Thu, 9 May 2013, Peter Hickman wrote: > Thanks but it would seem that Centos 5.8 does not have an /etc/init > directory only an /etc/init.d Sorry, my bad. I was thinking of rhel6/centos6. > > But thanks to your hint I have found the command that does the work > > # cat runsvdir-start > #!/bin/sh > > PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin > > exec env - PATH=$PATH \ > runsvdir -P /etc/service 'log: > ...........................................................................................................................................................................................................................................................................................................................................................................................................' > > Now all I need to do is turn this into an init.d script You can add this in /etc/inittab: sv:345:respawn:/etc/runit/2