s6.eclass
Example
inherit s6
src_install() {
...
s6_install_service myservice "${FILESDIR}"/run-s6 "${FILESDIR}"/finish-s6
...
# If you want a service to be logged, install the log service as shown here.
s6_install_service myservice/log "${FILESDIR}"/log-run-s6 \
"${FILESDIR}"/log-finish-s6
...
}
Functions
- s6_get_servicedir
-
Output the path for the s6 service directory (not including
${D}). - s6_install_service <servicename> <run> [finish]
-
Install an s6 service.
servicenameis the name of the service.runis the run script for the service.finishis the optional finish script for the service. - s6_service_down <servicename>
-
Install the
downflag so this service will not be started by default.servicenameis the name of the service. - s6_service_nosetsid <servicename>
-
Install the
nosetsidflag so this service will not be made a session leader.servicenameis the name of the service.
Maintainers
William Hubbs <williamh@gentoo.org>
Reporting Bugs
Please report bugs via https://bugs.gentoo.org/