From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/753 Path: news.gmane.org!not-for-mail From: Csillag =?iso-8859-2?Q?Tam=E1s?= Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit directory organization Date: Wed, 6 Apr 2005 19:52:52 +0200 Message-ID: <20050406175252.GI6177@digitus> References: <000a01c53970$dd986680$6601a8c0@GHDESK> Reply-To: Csillag =?iso-8859-2?Q?Tam=E1s?= NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 X-Trace: sea.gmane.org 1112809926 3050 80.91.229.2 (6 Apr 2005 17:52:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Apr 2005 17:52:06 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-989-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Apr 06 19:52:04 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14] ident=qmailr) by ciao.gmane.org with smtp (Exim 4.43) id 1DJEfw-000763-8i for gcsg-supervision@gmane.org; Wed, 06 Apr 2005 19:50:48 +0200 Original-Received: (qmail 6851 invoked by uid 76); 6 Apr 2005 17:53:18 -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 6845 invoked from network); 6 Apr 2005 17:53:18 -0000 Original-To: Gregg Howe Content-Disposition: inline In-Reply-To: <000a01c53970$dd986680$6601a8c0@GHDESK> X-Operating-System: Gnu/Linux X-PPKE-NOSPAM: I promise, I will never let anything happen to you. Nemo. X-PGP-Key: http://digitus.itk.ppke.hu/~cstamas/cstamas.pgp User-Agent: Mutt/1.5.6+20040907i X-PPKE-ITK-MailScanner: Found to be clean X-PPKE-ITK-MailScanner-SpamCheck: not spam, SpamAssassin (pont=-11.57, szukseges 5, autolearn=not spam, AWL 1.03, BAYES_00 -2.60, LOCAL_PPKE -10.00) X-PPKE-ITK-MailScanner-From: cstamas@digitus.itk.ppke.hu Xref: news.gmane.org gmane.comp.sysutils.supervision.general:753 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:753 Hi On 04/04, Gregg Howe wrote: > I have just installed runit in my lfs system and I am so grateful to be > able to simplify managing services. > > However, I am undecided as to how to organize the service file directories > and I am wondering what works for others. And whether anyone cares about > whether or how the runit file organization should fit into the Linux FHS. > > Ordinarily, I would have service start and finish scripts in /etc, yet the > service hierarchy also contains pipes, flags, pid files, etc which seem > more appropriate in /var. Or is this the kind of information that is > destined for /svc (I am not really sure what /svc is for)? > > I also will be setting up different service configurations, which I > suppose are like runlevels. But the description of using runsvchdir shows > the svdirs (current, previous, etc) back in /etc rather than /var. This > confuses me. Perhaps someone could explain how they organize their > service directories, svdir directories and run scripts. > > Gregg Howe I put each service in /var/srv I have /service which is symlinked to /var/service. If I want to set-up a new service I put it into /var/srv then symlink it to /service. runsvdir watches /var/service (The symlink is just for my own preference.) This is better (IMHO) because I do not want to mess with log directories in every dir. I mean log/run contains: #!/bin/sh exec chpst -u log svlogd -tt ./main I do not have to keep up the same structure for log files. And log files must not go to /etc. -- What's the most effective Windows NT remote management tool? A car. cstamas