1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 #!/sbin/openrc-run
#
# !!! This file is managed by Ansible !!!
#
supervisor=supervise-daemon
name="oeffisearch"
description="fast and simple tripplanner for the web"
PORT=808{{item}}
PID_FILE=/run/oeffisearch/{{item}}
CACHE_PATH=/var/lib/oeffisearch
export PORT
export CACHE_PATH
command="/usr/bin/oeffisearch"
command_user="oeffisearch:oeffisearch"
command_background=true
pidfile=/run/oeffisearch/{{item}}
directory="/var/lib/oeffisearch"
output_log="/var/log/oeffisearch/{{item}}.log"
depend() {
need net localmount
after firewall
}
start_pre() {
checkpath -d -o oeffisearch:oeffisearch /run/oeffisearch
checkpath -d -o oeffisearch:oeffisearch /var/lib/oeffisearch
}