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.
servicename
is the name of the service.run
is the run script for the service.finish
is the optional finish script for the service. - s6_service_down <servicename>
-
Install the
down
flag so this service will not be started by default.servicename
is the name of the service. - s6_service_nosetsid <servicename>
-
Install the
nosetsid
flag so this service will not be made a session leader.servicename
is the name of the service.
Maintainers
William Hubbs <williamh@gentoo.org>
Reporting Bugs
Please report bugs via https://bugs.gentoo.org/