From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/751 Path: news.gmane.org!not-for-mail From: "Gregg Howe" Newsgroups: gmane.comp.sysutils.supervision.general Subject: runit directory organization Date: Mon, 4 Apr 2005 16:48:55 -0700 Message-ID: <000a01c53970$dd986680$6601a8c0@GHDESK> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C53936.309956E0" X-Trace: sea.gmane.org 1112658186 2977 80.91.229.2 (4 Apr 2005 23:43:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Apr 2005 23:43:06 +0000 (UTC) Original-X-From: supervision-return-987-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Apr 05 01:43:03 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 1DIbD9-0005fY-P8 for gcsg-supervision@gmane.org; Tue, 05 Apr 2005 01:42:27 +0200 Original-Received: (qmail 24434 invoked by uid 76); 4 Apr 2005 23:44:41 -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 24428 invoked from network); 4 Apr 2005 23:44:41 -0000 Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:751 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:751 This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C53936.309956E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 ------=_NextPart_000_0007_01C53936.309956E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have just installed runit in my lfs = system and I=20 am so grateful to be able to simplify managing services.
 
However, I am undecided as to how = to organize=20 the service file directories and I am wondering what works for = others.  And=20 whether anyone cares about whether or how the runit file=20 organization should fit into the Linux FHS.
 
Ordinarily, I would have service start = and finish=20 scripts in /etc, yet the service hierarchy also contains pipes, flags, = pid=20 files, etc which seem more appropriate in /var.  Or is this the = kind of=20 information that is destined for /svc (I am not really sure what /svc is = for)?
 
I also will be setting up = different service=20 configurations, which I suppose are like runlevels.  But the = description of=20 using runsvchdir shows the svdirs (current, previous, etc) back in = /etc=20 rather than /var.  This confuses me.  Perhaps someone could = explain=20 how they organize their service directories, svdir directories and run=20 scripts.
 
Gregg = Howe
------=_NextPart_000_0007_01C53936.309956E0-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/752 Path: news.gmane.org!not-for-mail From: Alex Efros Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit directory organization Date: Tue, 5 Apr 2005 09:37:43 +0300 Organization: asdfGroup Inc., http://www.asdfGroup.com/ Message-ID: <20050405063743.GA4691@home.power> 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 1112682991 25615 80.91.229.2 (5 Apr 2005 06:36:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Apr 2005 06:36:31 +0000 (UTC) Original-X-From: supervision-return-988-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Apr 05 08:36:29 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 1DIhfC-000115-5G for gcsg-supervision@gmane.org; Tue, 05 Apr 2005 08:35:50 +0200 Original-Received: (qmail 27270 invoked by uid 76); 5 Apr 2005 06:38:07 -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 27264 invoked from network); 5 Apr 2005 06:38:06 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <000a01c53970$dd986680$6601a8c0@GHDESK> User-Agent: Mutt/1.5.6i Xref: news.gmane.org gmane.comp.sysutils.supervision.general:752 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:752 Hi! On Mon, Apr 04, 2005 at 04:48:55PM -0700, Gregg Howe wrote: > confuses me. Perhaps someone could explain how they organize their > service directories, svdir directories and run scripts. Boot/shutdown scripts: /etc/runit/1 /etc/runit/2 /etc/runit/3 Directory with service's run scripts repository: /service/ Directory with current active services: /var/service/ At least it's looks like this for usage/administration: when I need to install new service I will add it's run script to /service/SOMENEWSRV/, when I need to activate that service on current runlevel I will just symlink it into /var/service/: ln -s /service/SOMENEWSRV /var/service/ OR ln -s /service/SOMENEWSRV /var/service/NEW second form I use to choose between alternative realizations of same service, for example: ln -s /service/agetty-tty1 /var/service/tty1 ln -s /service/mingetty-tty2 /var/service/tty2 ln -s /service/apache2 /var/service/web ln -s /service/oops /var/service/webproxy Real fs layout is a little different. /var/service/ isn't a real directory - it's lust symlink to /etc/runit/runsvdir/CURRENT_RUNLEVEL_NAME/ which is a real directory and contain all these symlinks to active services in /service/. I don't use different runlevels, but if you need easy way to switch between runlevels you can use this layout: /etc/runit/runsvdir/somerealrunlevel1/ /etc/runit/runsvdir/somerealrunlevel2/ /etc/runit/runsvdir/somerealrunlevel3/ /etc/runit/runsvdir/current -> somerealrunlevel2 /var/service -> /etc/runit/runsvdir/current This way you will be able to switch between runlevels by just changing /etc/runit/runsvdir/current symlink. Of course, with this scheme script /etc/runit/2 should start `runsvdir` with '/var/service/' as first param. I prefer this layout because: - all contiguration-related files under /etc, so there is no need to backup /service/ or /var/service/ in addition to /etc - /service/ is mostly like /usr/ from administration view - it contain static run-scripts (which installed from 'baselayout' package or some service packages) and there is no needs to update these run-scripts except in very rare cases... yeah, I know there some dynamic files will be created (locks, pipes, etc.) in this directory and this is why this directory called /service/ instead of /usr/service/ - it's not completely static like /usr/, it's special directory for services with own special behaviour which differ from /etc, /usr and /var - there is no need to know current runlevel name to update it because I will add/remove symlinks only in /var/service/ directory I don't sure this layout is FHS-compliant, but looks like djb's and djb-like software, packaging system and proposed fs-layout will never be included in global standards like FHS, no matter how good they are. :( -- WBR, Alex. 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 From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/756 Path: news.gmane.org!not-for-mail From: Dean Hall Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit directory organization Date: Fri, 8 Apr 2005 14:45:41 -0400 Message-ID: References: <000a01c53970$dd986680$6601a8c0@GHDESK> Reply-To: Dean Hall NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112985881 12538 80.91.229.2 (8 Apr 2005 18:44:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2005 18:44:41 +0000 (UTC) Original-X-From: supervision-return-992-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Apr 08 20:44:36 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1DJyRn-0004kU-Gm for gcsg-supervision@gmane.org; Fri, 08 Apr 2005 20:43:15 +0200 Original-Received: (qmail 23916 invoked by uid 76); 8 Apr 2005 18:46:06 -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 23910 invoked from network); 8 Apr 2005 18:46:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=AZ/S4HmEjWZ7v98u8dfRBJOgWgcpuFRbwnlss7+r8AY+J2YmfBFAI1U4jl2eI4+SnvpmocIyJ2G6pAD2lxGHxiFIBw9wan+SJXGvOxfzx08urkVBJXo3e5SXB7kNkcHheOUMw4/kC4O/jBP2KllTTDwy0J+Dy/pqDP1YFQ8mkrg= Original-To: supervision@list.skarnet.org In-Reply-To: <000a01c53970$dd986680$6601a8c0@GHDESK> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:756 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:756 On Apr 4, 2005 7:48 PM, Gregg Howe wrote: > > 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. As someone has noted already, runit and other djb-ish software usually deliberately breaks FHS compatibility. I run gentoo myself and, without editing every ebuild I install, I'm pretty much stuck with a mostly FHS-compatible OS. Luckily, djb-ish stuff lets you do whatever you want. > 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)? Here's the way I do it, though I'm sure many might dislike it: - envdirs in /etc/envdir.d - misc. configuration in /etc/config.d - services in /var/service/{all,default,current} I don't use /etc/runit at all. Don't worry too much about what directories in which to put stuff. It's really up to you. d -- http://deanpence.com 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.