]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
redhat: properly restart lldpd on upgrade
authorVincent Bernat <bernat@luffy.cx>
Fri, 29 Jun 2012 04:28:11 +0000 (06:28 +0200)
committerVincent Bernat <bernat@luffy.cx>
Fri, 29 Jun 2012 04:28:11 +0000 (06:28 +0200)
redhat/lldpd.spec

index 2f126e51c8fe31610c05c4888313bf72278df2a7..a9240924c386a273e68c0707ddebc5c2589b7a13 100644 (file)
@@ -167,7 +167,7 @@ if getent passwd %lldpd_user >/dev/null 2>&1 ; then : ; else \
 /sbin/chkconfig --add lldpd
 %postun
 if [ "$1" -ge  "1" ]; then
-   /sbin/service lldpd >/dev/null 2>&1 || :
+   /sbin/service lldpd condrestart >/dev/null 2>&1 || :
 fi
 %preun
 if [ "$1" = "0" ]; then