: asapien/signet

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
#!/sbin/openrc-run
# kfcgi supervises the FastCGI workers and owns the socket.
description="signet FastCGI API"
command="/usr/sbin/kfcgi"
# -p / : no chroot (the API execs qpdf and links libpq dynamically)
command_args="-d -n 2 -N 4 -s /run/signet/api.sock -u lighttpd -U signet -p / -- /usr/local/libexec/signet-api"
command_background="yes"
pidfile="/run/signet-api.pid"

depend() {
	need postgresql redis
	before lighttpd
}

start_pre() {
	checkpath -d -m 0755 -o root:root /run/signet
}