mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-26 19:11:55 +01:00
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.
18 lines
312 B
Plaintext
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
|
|
}
|