From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/773 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit directory organization Date: Mon, 18 Apr 2005 19:30:24 +0000 Message-ID: <20050418193039.22204.qmail@984e471ecf3311.315fe32.mid.smarden.org> References: <000a01c53970$dd986680$6601a8c0@GHDESK> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1113852400 7812 80.91.229.2 (18 Apr 2005 19:26:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Apr 2005 19:26:40 +0000 (UTC) Original-X-From: supervision-return-1009-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Apr 18 21:26:38 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1DNbst-0001xt-FG for gcsg-supervision@gmane.org; Mon, 18 Apr 2005 21:26:15 +0200 Original-Received: (qmail 14749 invoked by uid 76); 18 Apr 2005 19:30:40 -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 14744 invoked from network); 18 Apr 2005 19:30:40 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <000a01c53970$dd986680$6601a8c0@GHDESK> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:773 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:773 On Mon, Apr 04, 2005 at 04:48:55PM -0700, 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. On Debian, I have the runit configuration including getty services in /etc/runit/. Other packages/services put their service directories into /etc/ (or a subdirectory /etc//), and optionally provide a link in /var/service/. Logs are put into /var/log/. > 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. You can make the ./supervise subdirectory in the service directory a symlink to /var/run/ before enabling it for the first time. runsv will follow the dangling symlink, and creates the directory in /var/run/. So you only have the configuration in /etc/. Regards, Gerrit.