From: Ruben Kerkhof Date: Wed, 20 Jun 2018 12:32:26 +0000 (+0200) Subject: redhat: use 'service' command to restart frr X-Git-Tag: frr-6.1-dev~203^2~21 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=515a8ee8f55bbdd1b7b625e3e97abea43ff662a3;p=matthieu%2Ffrr.git redhat: use 'service' command to restart frr Signed-off-by: Ruben Kerkhof --- diff --git a/redhat/frr.spec.in b/redhat/frr.spec.in index 8fc0c0c270..378e5fd963 100644 --- a/redhat/frr.spec.in +++ b/redhat/frr.spec.in @@ -501,7 +501,7 @@ if [ "$1" -ge 1 ]; then ## ## init.d Version ## - /etc/rc.d/init.d/frr restart >/dev/null 2>&1 + service frr restart >/dev/null 2>&1 %endif : fi @@ -519,7 +519,7 @@ fi ## init.d Version ## if [ $1 -eq 0 ] ; then - /etc/rc.d/init.d/frr stop >/dev/null 2>&1 + service frr stop >/dev/null 2>&1 /sbin/chkconfig --del frr fi %endif