summaryrefslogtreecommitdiff
path: root/net/bird2/files/bird.in
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--net/bird2/files/bird.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/bird2/files/bird.in b/net/bird2/files/bird.in
index de800bd69b81..91932c656db9 100644
--- a/net/bird2/files/bird.in
+++ b/net/bird2/files/bird.in
@@ -1,7 +1,7 @@
#!/bin/sh
# PROVIDE: bird dynamicrouting
-# REQUIRE: LOGIN
+# REQUIRE: DAEMONS
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
@@ -27,4 +27,8 @@ load_rc_config $name
command=%%PREFIX%%/sbin/${name}
command_args="-c $bird_config -g $bird_group"
+extra_commands="gracefulrestart" # It is not a restart but a stop
+
+gracefulrestart_cmd="%%PREFIX%%/sbin/${name}c graceful restart"
+
run_rc_command "$1"