##
## Systemd Version
##
- %systemd_postun frr.service
+ %systemd_postun_with_restart frr.service
%else
##
## init.d Version
##
## Systemd Version
##
- if [ "$1" = "0" ]; then
- for daemon in %all_daemons ; do
- if [ x"${daemon}" != x"" ] ; then
- %systemd_preun frr.service
- fi
- done
+ if [ $1 -eq 0 ] ; then
+ %systemd_preun frr.service
fi
%else
##
## init.d Version
##
- if [ "$1" = "0" ]; then
+ if [ $1 -eq 0 ] ; then
/etc/rc.d/init.d/frr stop >/dev/null 2>&1
/sbin/chkconfig --del frr
fi
%changelog
* Fri Oct 20 2017 Martin Winter <mwinter@opensourcerouting.org> - %{version}
- Fix script location for watchfrr restart functions in daemon config
+- Fix postun script to restart frr during upgrade
* Mon Apr 17 2017 Martin Winter <mwinter@opensourcerouting.org>
- new subpackage frr-pythontools with python 2.7 restart script