mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-25 04:05:31 +00:00
Merge pull request #2250 from donaldsharp/watchfrr
redhat: Make watchfrr the default
This commit is contained in:
commit
a7361d4fe9
@ -34,7 +34,7 @@
|
|||||||
# When using "vtysh" such a config file is also needed. It should be owned by
|
# When using "vtysh" such a config file is also needed. It should be owned by
|
||||||
# group "frrvty" and set to ug=rw,o= though. Check /etc/pam.d/frr, too.
|
# group "frrvty" and set to ug=rw,o= though. Check /etc/pam.d/frr, too.
|
||||||
#
|
#
|
||||||
watchfrr_enable=no
|
watchfrr_enable=yes
|
||||||
watchfrr_options=("-b_" "-r/usr/lib/frr/frr_restart_%s" "-s/usr/lib/frr/frr_start_%s" "-k/usr/lib/frr/frr_stop_%s")
|
watchfrr_options=("-b_" "-r/usr/lib/frr/frr_restart_%s" "-s/usr/lib/frr/frr_start_%s" "-k/usr/lib/frr/frr_stop_%s")
|
||||||
#
|
#
|
||||||
zebra=no
|
zebra=no
|
||||||
|
@ -448,6 +448,12 @@ done
|
|||||||
# Config files won't get replaced by default, so we do this ugly hack to fix it
|
# Config files won't get replaced by default, so we do this ugly hack to fix it
|
||||||
%__sed -i 's|/etc/init.d/|%{_sbindir}/|g' %{_sysconfdir}/daemons 2> /dev/null || true
|
%__sed -i 's|/etc/init.d/|%{_sbindir}/|g' %{_sysconfdir}/daemons 2> /dev/null || true
|
||||||
|
|
||||||
|
# With systemd, watchfrr is mandatory. Fix config to make sure it's enabled if
|
||||||
|
# we install or upgrade to a frr built with systemd
|
||||||
|
%if "%{initsystem}" == "systemd"
|
||||||
|
%__sed -i 's|watchfrr_enable=no|watchfrr_enable=yes|g' %{_sysconfdir}/daemons 2> /dev/null || true
|
||||||
|
%endif
|
||||||
|
|
||||||
/sbin/install-info %{_infodir}/frr.info.gz %{_infodir}/dir
|
/sbin/install-info %{_infodir}/frr.info.gz %{_infodir}/dir
|
||||||
|
|
||||||
# Create dummy files if they don't exist so basic functions can be used.
|
# Create dummy files if they don't exist so basic functions can be used.
|
||||||
|
Loading…
Reference in New Issue
Block a user