File: 04_invoke-rc.d.diff

package info (click to toggle)
fetchmail 6.5.6-2
  • links: PTS
  • area: main
  • in suites: forky
  • size: 7,596 kB
  • sloc: ansic: 19,190; sh: 7,108; python: 2,395; perl: 564; yacc: 447; lex: 286; makefile: 260; awk: 124; lisp: 84; exp: 43; sed: 17
file content (20 lines) | stat: -rw-r--r-- 669 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: patch contrib files to run invoke-rc.d instead of /etc/init.d/* directly
 This is required by policy 4.0.0.
Author: Nicolas Boulenguez <nicolas@debian.org>
Forwarded: no

--- a/contrib/fetchmail.logrotate
+++ b/contrib/fetchmail.logrotate
@@ -46,11 +46,7 @@
     sharedscripts
     postrotate
         if [ -f /var/run/fetchmail/fetchmail.pid ]; then \
-            if [ -x /usr/sbin/invoke-rc.d ]; then \
-                invoke-rc.d fetchmail restart > /dev/null; \
-            else \
-                /etc/init.d/fetchmail restart > /dev/null; \
-            fi; \
+            invoke-rc.d fetchmail restart > /dev/null;
         fi;
     endscript
 }