2021-01-11 13:13:46 +00:00
|
|
|
cdist-type__runit_service(7)
|
2021-01-11 13:10:55 +00:00
|
|
|
====================================
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2021-01-11 13:13:46 +00:00
|
|
|
cdist-type__runit_service - Create a runit-compatible service dir.
|
2021-01-11 13:10:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
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`.
|
|
|
|
|
2021-10-30 08:40:01 +00:00
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
|
|
|
state
|
|
|
|
Whether this service is to be 'present' (default) or 'absent'.
|
|
|
|
|
2021-01-11 13:10:55 +00:00
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. code-block:: sh
|
|
|
|
|
2021-01-11 13:13:46 +00:00
|
|
|
require="__runit" __runit_service tasksched \
|
2021-01-11 13:10:55 +00:00
|
|
|
--source - << EOF
|
|
|
|
#!/bin/sh -e
|
|
|
|
cd "${HOME}/.local/share/tasksched"
|
|
|
|
exec ./server.js 2>&1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
2021-01-11 13:13:46 +00:00
|
|
|
:strong:`cdist-type__runit`\ (7)
|
2021-01-11 13:10:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
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.
|