From 0251ba5cc54cdd24092e442ab7ec364b97d42601 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 21 Sep 2023 05:57:24 +0000 Subject: More doc, complete? Signed-off-by: Laurent Bercot --- examples/openrc/httpsd-6.initd | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 examples/openrc/httpsd-6.initd (limited to 'examples/openrc/httpsd-6.initd') diff --git a/examples/openrc/httpsd-6.initd b/examples/openrc/httpsd-6.initd new file mode 100644 index 0000000..3c80105 --- /dev/null +++ b/examples/openrc/httpsd-6.initd @@ -0,0 +1,23 @@ +#!/sbin/openrc-run + +name="httpsd-6" +description="tipidee for HTTPS on ipv6" +_ip=:: +_uid=`id -u www-data` +_gid=`id -g www-data` + +command=/bin/env +command_args="UID=${_uid} GID=${_gid} KEYFILE=/etc/acme/private/examplecom-key.pem CERTFILE=/etc/acme/examplecom-cert.pem s6-tlsserver -e -U ${_ip} 443 tipideed" +command_background=yes +directory=/home/www-data +pidfile=/run/httpsd-6.pid +error_log=/run/httpsd-6.fifo +error_logger="logger -t httpsd-6" + +depend() { + need net localmount +} + +start_pre() { + mkfifo -m 0600 /run/httpsd-6.fifo || : +} -- cgit v1.3.1