summaryrefslogtreecommitdiff
path: root/examples/openrc/httpd-6.initd
blob: f53f38fe5bb9483a0e62a2bf3d141c92d84705b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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=/usr/bin/env
command_args="UID=${_uid} GID=${_gid} s6-tcpserver -U ${_ip} 80 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 || :
}