#!/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 }