From 0760bf300a5a425e5cc147a7b58d27375137c2e2 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 27 Aug 2018 05:44:40 +0200 Subject: 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. --- etc/init.d/vyatta-router | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'etc/init.d') 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 -- cgit v1.2.3