Hi!
On Wed, Oct 15, 2014 at 05:37:47PM -0400, Guy Matz wrote:
> Thanks so much for the reply! I'm a little surprised that the package
> install of runit didn't create the /service directory if it's required . .
I'm not sure is runit community have decided "right" paths already -
last time I checked everyone have used different paths.
Most popular paths (in random order) was /etc/sv/, /etc/service/,
/service/, /var/service/ and /etc/runit/runsvdir/<YOURRUNLEVELNAME>/.
Minimal setup involve 2 directories: first keep all services, second keep
symlinks to active services in first. If you like to emulate runlevels
then second is usually not a directory but a symlink to
/etc/runit/runsvdir/<CURRENTRUNLEVELNAME>/ (which keep symlinks to
services in first directory which should be active on this runlevel).
For example, here is my setup:
/service/
directory with all services
/var/service
symlink to "../etc/runit/runsvdir/current"
/etc/runit/2 starts `runsvdir -P /var/service 'log: .....'`
/etc/runit/runsvdir/current
symlink to "default"
/etc/runit/runsvdir/default/
contain symlinks to services in /service/ which should be active
on "default" runlevel
--
WBR, Alex.
Received on Wed Oct 15 2014 - 22:00:02 UTC