supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* FHS compatibility for daemontools/runit
@ 2008-05-19  9:54 Wayne Marshall
  2008-05-19 22:19 ` George Georgalis
  0 siblings, 1 reply; 2+ messages in thread
From: Wayne Marshall @ 2008-05-19  9:54 UTC (permalink / raw)
  To: supervision

It is trivial to obtain FHS compatibility with daemontools/runit.

1) Install service definitions on /var, e.g.:

  /var/service.d/

2) Setup the service activation directory in /etc, e.g.:

  /etc/service/

3) Configure startup of svscan/runsvdir to monitor the service
activation directory, /etc/service.

4) To activate a service, symlink its service definition
directory into the service activation directory:

  # cd /etc/service
  # ln -s /var/service.d/qmail-start

That's all there is to it.  All run-time files are created and
maintained on /var, the root partition may be mounted read-only
(after making service activation symlinks), it is both possible
and sensible to keep multilogs within each respective service
definition directory, and no other symlink gymnastics are
required.

For pure djb compatibility, symlink /service --> /etc/service.

Wayne


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: FHS compatibility for daemontools/runit
  2008-05-19  9:54 FHS compatibility for daemontools/runit Wayne Marshall
@ 2008-05-19 22:19 ` George Georgalis
  0 siblings, 0 replies; 2+ messages in thread
From: George Georgalis @ 2008-05-19 22:19 UTC (permalink / raw)
  To: supervision

On Mon 19 May 2008 at 09:54:26 AM +0000, Wayne Marshall wrote:
>It is trivial to obtain FHS compatibility with daemontools/runit.
>
>1) Install service definitions on /var, e.g.:
>
>  /var/service.d/
>
>2) Setup the service activation directory in /etc, e.g.:
>
>  /etc/service/
>
>3) Configure startup of svscan/runsvdir to monitor the service
>activation directory, /etc/service.
>
>4) To activate a service, symlink its service definition
>directory into the service activation directory:
>
>  # cd /etc/service
>  # ln -s /var/service.d/qmail-start
>
>That's all there is to it.  All run-time files are created and
>maintained on /var, the root partition may be mounted read-only
>(after making service activation symlinks), it is both possible
>and sensible to keep multilogs within each respective service
>definition directory, and no other symlink gymnastics are
>required.
>
>For pure djb compatibility, symlink /service --> /etc/service.
>

What about run scripts in var? And there is this:

  Applications must generally not add directories to the
  top level of /var. Such directories should only be
  added if they have some system-wide implication, and
  in consultation with the FHS mailing list.

...from fhs-2.3.

// George


-- 
George Georgalis, information system scientist <IXOYE><


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-19 22:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-19  9:54 FHS compatibility for daemontools/runit Wayne Marshall
2008-05-19 22:19 ` George Georgalis

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).