zaphyra's git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

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 
35 #!/sbin/openrc-run

#
# !!! This file is managed by Ansible !!!
#


supervisor=supervise-daemon

name="oeffi-web"
description="fast and simple tripplanner for the web"

PORT=500{{item}}
PID_FILE=/run/oeffi-web/{{item}}
CACHE_PATH=/var/lib/oeffisearch

export PORT
export CACHE_PATH

command="/usr/bin/oeffi-web"
command_user=oeffisearch:oeffisearch
command_background=true
pidfile=/run/oeffi-web/{{item}}
directory="/usr/share/oeffi-web"
output_log="/var/log/oeffi-web/{{item}}.log"

depend() {
	need net localmount
	after firewall
}

start_pre() {
	checkpath -d -o oeffisearch:oeffisearch /run/oeffi-web
	checkpath -d -o oeffisearch:oeffisearch /var/lib/oeffisearch
}