aports/community/babeld/babeld.initd
2022-01-26 02:34:14 +00:00

18 lines
312 B
Bash

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