svmod
—
helper to control user access to runsv services
svmod |
user:group svdir ... |
runsv(8)
allows for setting fine-grained permissions on its
control pipe, to give users the ability to control a
service. svmod
is a small helper that you can use in
your service files that simplifies setting the right permissions.
Give kate the ability to control her own
runsvdir-user@kate service. In
/usr/local/etc/sv/local/runsvdir-user@kate/run or
/usr/local/etc/sv/local/runsvdir-user@kate/conf add:
kate can now control (start, restart, take down,
etc.) and check the service's state with
sv(8).
To give joe the ability to control the
sndiod service and its attached logging service, add
to /usr/local/etc/sv/sndiod/conf.