aports/testing/babeld/babeld.initd
Steven Honson 52863de4de testing/babeld: use supervise-daemon
If babeld crashes, it often leaves its pidfile behind, preventing it
from starting up again without manual intervention.

Using supervise-daemon to supervise babeld, and disabling the use of a
pidfile with babeld's -I '' command-line option resolves this issue.
2020-06-15 15:23:21 +00:00

18 lines
312 B
Plaintext

#!/sbin/openrc-run
command="/usr/bin/babeld"
command_args="-I '' $ARGS"
supervisor="supervise-daemon"
depend() {
need net
after firewall
}
start_pre() {
if [ -z "$ARGS" ] && [ ! -s "/etc/babeld.conf" ]; then
echo "ERROR: No configuration found in /etc/conf.d/babeld or /etc/babeld.conf"
return 1
fi
}