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