mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-15 12:15:22 +03:00
19 lines
384 B
Bash
19 lines
384 B
Bash
#!/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)
|
|
}
|