aboutsummaryrefslogtreecommitdiffstats
path: root/community/babeld/babeld.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/babeld/babeld.initd')
-rw-r--r--community/babeld/babeld.initd17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/babeld/babeld.initd b/community/babeld/babeld.initd
new file mode 100644
index 00000000000..f502040b0aa
--- /dev/null
+++ b/community/babeld/babeld.initd
@@ -0,0 +1,17 @@
+#!/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
+}