mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-07 00:42:07 +01:00
https://www.irif.fr/~jch/software/babel/ A loop-avoiding distance-vector routing protocol
18 lines
324 B
Plaintext
18 lines
324 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
command="/usr/bin/babeld"
|
|
pidfile="/run/${RC_SVCNAME}.pid"
|
|
command_args="-D -I $pidfile $ARGS"
|
|
|
|
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
|
|
}
|