For runit, it's not what you want. You need to create a service entry for
the given user in the system's /etc/service. Example:
Alice would like to have foobar service controlled by her. She asks Bob to
set up a user-specific service so she can do so. Bob creates a directory,
/etc/services/runsvdir-alice, and places a run file in it. The run file
has the following:
#!/bin/sh
exec 2>&1
exec chpst -ualice runsvdir /home/alice/service
Bob saves the /etc/services/runsvdir-alice/run file and then creates a
symlink /services/runsvdir-alice that points to /etc/services/runsvdir.
The existing system-level runsvdir then notices the new entry and launches
a runsvdir service with Alice's permissions, etc. That runsvdir is under
the control of Alice now; Alice can now define her own services in
/home/alice/service and they will be supervised by her version of the
runsvdir.
On Wed, Oct 15, 2014 at 10:39 AM, Guy Matz <gmatz_at_matz.org> wrote:
> Hi! On ubuntu 12.04 I'm following the doc here:
> http://smarden.org/runit/faq.html#userservices
>
> The doc says I only need to link the user's service directory into
> /etc/service, however it seems that user-specific services don't work
> unless I also link the user's service directory into /etc/sv . . .
>
> Anyone know if this is correct behavior?
>
> Thanks,
> Guy
>
Received on Wed Oct 15 2014 - 20:09:14 UTC