summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-08-27 05:44:40 +0200
committerDaniil Baturin <daniil@baturin.org>2018-08-27 05:44:40 +0200
commit0760bf300a5a425e5cc147a7b58d27375137c2e2 (patch)
tree9022284de518d8778bb163bf2e783c8b0e7819df /etc
parent81b10c157b47a47f233119ef2e9627e168adc861 (diff)
downloadvyatta-cfg-0760bf300a5a425e5cc147a7b58d27375137c2e2.tar.gz
vyatta-cfg-0760bf300a5a425e5cc147a7b58d27375137c2e2.zip
T441: do not start FRR with systemd
at least until we figure out how to make watchfrr stop restarting all daemons if just one failed and stop systemd from restarting FRR if watchfrr is not enabled.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/init.d/vyatta-router12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/init.d/vyatta-router b/etc/init.d/vyatta-router
index f5c9ebd..530fe5c 100755
--- a/etc/init.d/vyatta-router
+++ b/etc/init.d/vyatta-router
@@ -152,6 +152,16 @@ bind_mount_boot ()
start ()
{
+ # Fixup for FRR
+
+ # In 5.1 master, zebra thinks existence of /var/run/netns is
+ # a requirement for netns support
+ mkdir /var/run/netns
+
+ # Since systemd doesn't work without watchfrr and watchfrr restarts
+ # all daemons if just one failed, do the start manually
+ /usr/lib/frr/frr start
+
log_action_begin_msg "Mounting VyOS Config"
# ensure the vyatta_configdir supports a large number of inodes since
# the config hierarchy is often inode-bound (instead of size).
@@ -203,6 +213,8 @@ stop()
log_action_begin_msg "Un-mounting VyOS Config"
umount ${vyatta_configdir}
log_action_end_msg $?
+
+ /usr/lib/frr/frr stop
}
case "$action" in