supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Joshua N Pritikin <jpritikin@pobox.com>
Subject: Re: service definition vs service activation
Date: Wed, 8 Mar 2006 10:48:02 +0530	[thread overview]
Message-ID: <20060308051802.GF6346@always.joy.eth.net> (raw)
In-Reply-To: <20060307183522.GB17273@home.power>

[-- Attachment #1: Type: text/plain, Size: 1110 bytes --]

On Tue, Mar 07, 2006 at 08:35:22PM +0200, Alex Efros wrote:
> 1)  Service definition directory can use symlinks to suit FHS:
> 	/etc/sv/SERVICE/supervise     -> /var/run/sv/SERVICE/
> 	/etc/sv/SERVICE/log/supervise -> /var/run/sv/SERVICE/log/
>     and ./log/run can start svlogd with /var/log/SERVICE/ as param.
>     
>     That way /etc/ will contain only static configuration files, while
>     logs and ./supervise/ dir will be on /var/.
>     Service activation directory is /var/service/ or /var/sv/.
> 
>     I've tried this way, and found myself always forget to create
>     ./supervise symlinks BEFORE I start new service and runsv will create
>     ./supervise directories instead. This can be easy solved by using
>     script to create service directories, of course.
> 
>     Ugly, but suit FHS.

I think that's too ugly for mere pedantic FHS compliance.

I'd prefer a small amount of read-only data on /var (run, finish, etc)
rather than confront symlink hell.  With symlinks, it is too comfusing
if the run script uses relative paths (eg. envdir ./config and the
like).

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-03-08  5:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-06 16:05 runit-1.4.0 available Gerrit Pape
2006-03-06 19:13 ` service definition vs service activation Wayne Marshall
2006-03-06 21:54   ` Gilles
2006-03-07  5:21     ` Joshua N Pritikin
2006-03-07 18:35   ` Alex Efros
2006-03-08  5:18     ` Joshua N Pritikin [this message]
2006-03-16 10:46     ` Gerrit Pape
2006-03-08 15:40   ` Christian Holtje
2006-03-08 16:04     ` Joshua N Pritikin
2006-03-20 21:17 ` runit-1.4.1 available Gerrit Pape
2006-03-07 13:30 service definition vs service activation Joshua N Pritikin
2006-03-07 17:46 ` Joshua N Pritikin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060308051802.GF6346@always.joy.eth.net \
    --to=jpritikin@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).