]> git.donarmstrong.com Git - debian/debian-policy.git/commitdiff
Avoid init scripts entirely in logrotate example
authorRuss Allbery <rra@debian.org>
Wed, 7 Jul 2010 15:55:05 +0000 (08:55 -0700)
committerRuss Allbery <rra@debian.org>
Wed, 7 Jul 2010 15:55:05 +0000 (08:55 -0700)
The best way to call the init script in a logrotate example is
debated and will be handled in another bug.  In the meantime, avoid
the problem entirely by not calling the init script.

policy.sgml

index 473601e4f12e687547e101ea782a295b2a325a58..5ff9f377c1aee7eb97ad4286cfded78990ab5077 100644 (file)
@@ -7930,7 +7930,7 @@ ln -fs ../sbin/sendmail debian/tmp/usr/bin/runq
     compress
     missingok
     postrotate
-        invoke-rc.d foo force-reload
+        [ -f /var/run/foo.pid ] && kill -s HUP `cat /var/run/foo.pid`
     endscript
 }
          </example>