cdist-contrib/type/__runit_service/man.rst
evilham 2038244ec4 [__runit*] Add support for Debian/Devuan
Apparently these types were only supporting FreeBSD, this brings in support for
Debian and Devuan by taking advantage of
https://packages.debian.org/bullseye/runit-run
2021-10-30 10:40:01 +02:00

64 lines
1.3 KiB
ReStructuredText

cdist-type__runit_service(7)
====================================
NAME
----
cdist-type__runit_service - Create a runit-compatible service dir.
DESCRIPTION
-----------
Create a directory structure compatible with runit-like service management.
Note that sv(8) and runsvdir(8) must be present on the target system, this can
be achieved with e.g. `__runit`.
The `__object_id` will be used as the service name.
REQUIRED PARAMETERS
-------------------
source
File to save as <servicedir>/run. If set to '-', standard input will be used.
BOOLEAN PARAMETERS
------------------
log
Setup logging with `svlogd -tt ./main`.
OPTIONAL PARAMETERS
-------------------
state
Whether this service is to be 'present' (default) or 'absent'.
EXAMPLES
--------
.. code-block:: sh
require="__runit" __runit_service tasksched \
--source - << EOF
#!/bin/sh -e
cd "${HOME}/.local/share/tasksched"
exec ./server.js 2>&1
EOF
SEE ALSO
--------
:strong:`cdist-type__runit`\ (7)
AUTHORS
-------
Evilham <cvs--@--evilham.com>
COPYING
-------
Copyright \(C) 2020 Evilham. You can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.