aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bird/bird.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/bird/bird.initd')
-rw-r--r--testing/bird/bird.initd28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/bird/bird.initd b/testing/bird/bird.initd
new file mode 100644
index 0000000000..f3b51aa43f
--- /dev/null
+++ b/testing/bird/bird.initd
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+
+extra_started_commands="reload"
+
+name=bird
+command=/usr/sbin/$name
+
+sock="/var/run/$name.ctl"
+command_args="-c /etc/${name}.conf -s $sock"
+
+
+depend() {
+ need net
+ use logger
+ after firewall
+}
+
+start_pre() {
+ [ -f "/etc/$name.conf" ] && return 0
+ eerror "Please create /etc/$name.conf"
+ return 1
+}
+
+reload() {
+ ebegin "Reloading $name"
+ killall -HUP $command
+ eend $?
+}