#!/sbin/openrc-run description="A JSON API for BIRD" name=birdwatcher command=/usr/bin/birdwatcher command_args="${BIRDWATCHER_ARGS}" : ${command_user:="birdwatcher:bird"} command_background=yes pidfile=/run/birdwatcher/birdwatcher.pid depend() { need bird use logger after firewall } start_pre() { checkpath --directory --mode 0775 --owner $command_user $(dirname $pidfile) }