]> git.donarmstrong.com Git - debian/debian-policy.git/commitdiff
Use start-stop-daemon instead of kill for logrotate
authorRuss Allbery <rra@debian.org>
Thu, 8 Jul 2010 16:21:18 +0000 (09:21 -0700)
committerRuss Allbery <rra@debian.org>
Thu, 8 Jul 2010 16:21:18 +0000 (09:21 -0700)
policy.sgml

index a7bf76e0209d93db3b7f41b38dad6ec68e13ea5a..975ea139f7a18c01c9c6f7298d8d4091cdecd2f3 100644 (file)
@@ -7939,7 +7939,7 @@ ln -fs ../sbin/sendmail debian/tmp/usr/bin/runq
     compress
     missingok
     postrotate
-        [ -f /var/run/foo.pid ] && kill -s HUP `cat /var/run/foo.pid`
+        start-stop-daemon -K -p /var/run/foo.pid -s HUP -x /usr/sbin/foo -q
     endscript
 }
          </example>