.\" Man page generated from reStructuredText. . .TH "CDIST-TYPE__DAEMONTOOLS_SERVICE" "7" "Jun 23, 2019" "5.1.2" "cdist" . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH NAME .sp cdist\-type__daemontools_service \- Create a daemontools\-compatible service dir. .SH DESCRIPTION .sp Create a directory structure compatible with daemontools\-like service management. .sp Note that svc must be present on the target system. .sp The object ID will be used as the service name. .SH REQUIRED PARAMETERS .sp None. .SH OPTIONAL PARAMETERS .INDENT 0.0 .TP .B run Command to run. exec\-ing and stderr redirection will be added. One of run, run\-file must be specified. .sp Example: \fImy\-program\fP .TP .B run\-file File to save as /run. One of run, run\-file must be specified. .sp Example: .UNINDENT .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C #!/bin/sh exec 2>&1 exec my_program .ft P .fi .UNINDENT .UNINDENT .INDENT 0.0 .TP .B log\-run Command to run for log consumption. Default: \fImultilog t ./main\fP .TP .B servicedir Directory to install into. Default: \fI/service\fP .UNINDENT .SH BOOLEAN PARAMETERS .sp None. .SH EXAMPLES .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C require="__daemontools" __daemontools_service prometheus \-\-run "setuidgid prometheus $GOBIN/prometheus $FLAGS" .ft P .fi .UNINDENT .UNINDENT .SH SEE ALSO .sp \fBcdist\-type__daemontools\fP(7) .SH AUTHORS .sp Kamila Součková <\fI\%kamila\-\-@\-\-ksp.sk\fP> .SH COPYING .sp Copyright (C) 2017 Kamila Součková. 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. .SH COPYRIGHT ungleich GmbH 2019 .\" Generated by docutils manpage writer. .