diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-09-21 05:57:24 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-09-21 05:57:24 +0000 |
commit | 0251ba5cc54cdd24092e442ab7ec364b97d42601 (patch) | |
tree | 56dfd48ce39c1958c889daf1d1196571bf82981a /examples/openrc/httpd-6.initd | |
parent | 3d334dca671898241732dbc0ef6838b768308da7 (diff) | |
download | tipidee-0251ba5cc54cdd24092e442ab7ec364b97d42601.tar.xz |
More doc, complete?
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'examples/openrc/httpd-6.initd')
-rw-r--r-- | examples/openrc/httpd-6.initd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/openrc/httpd-6.initd b/examples/openrc/httpd-6.initd new file mode 100644 index 0000000..5b8a4cb --- /dev/null +++ b/examples/openrc/httpd-6.initd @@ -0,0 +1,23 @@ +#!/sbin/openrc-run + +name="httpd-6" +description="tipidee for HTTP on ipv6" +_ip=:: +_uid=`id -u www-data` +_gid=`id -g www-data` + +command=/bin/env +command_args="UID=${_uid} GID=${_gid} s6-tcpserver6 -U ${_ip} 80 s6-tcpserver-access tipideed" +command_background=yes +directory=/home/www-data +pidfile=/run/httpd-6.pid +error_log=/run/httpd-6.fifo +error_logger="logger -t httpd-6" + +depend() { + need net localmount +} + +start_pre() { + mkfifo -m 0600 /run/httpd-6.fifo || : +} |