File: 01-use-invoke-rc-d.diff

package info (click to toggle)
needrestart 3.6-4%2Bdeb12u3
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 936 kB
  • sloc: perl: 3,371; sh: 277; makefile: 82
file content (15 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Use invoke-rc.d instead of service command.
# Closes: #850948

diff -Naur needrestart-2.11.orig/needrestart needrestart-2.11/needrestart
--- needrestart-2.11.orig/needrestart	2017-01-15 19:47:25.000000000 +0100
+++ needrestart-2.11/needrestart	2017-01-17 13:39:07.262266148 +0100
@@ -333,7 +333,7 @@
 	    }
 	}
 	else {
-	    (q(service), $rc, q(restart));
+	    (q(invoke-rc.d), $rc, q(restart));
 	}
     }
 }