File: init-policy.patch

package info (click to toggle)
yubihsm-connector 3.0.5-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 304 kB
  • sloc: ansic: 425; sh: 93; makefile: 47
file content (43 lines) | stat: -rw-r--r-- 1,152 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From: Colin Watson <cjwatson@debian.org>
Date: Mon, 24 Jun 2024 12:43:53 +0100
Subject: Make init script comply with Debian policy

Source `/lib/lsb/init-functions` and accept the `force-reload` option.

Forwarded: no
Last-Update: 2024-06-24
---
 deb/yubihsm-connector | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/deb/yubihsm-connector b/deb/yubihsm-connector
index 8ebeee9..4581234 100644
--- a/deb/yubihsm-connector
+++ b/deb/yubihsm-connector
@@ -21,6 +21,8 @@ STOP_SCHEDULE="${STOP_SCHEDULE:-QUIT/5/TERM/5/KILL/5}"
 
 test -x $DAEMON || exit 0
 
+. /lib/lsb/init-functions
+
 start() {
     touch $LOGFILE && chown $DAEMONUSER $LOGFILE
     start-stop-daemon --start --quiet --make-pidfile --pidfile $PIDFILE \
@@ -54,7 +56,7 @@ case "$1" in
         echo "Stopping $NAME"
         stop
     ;;
-    restart)
+    restart|force-reload)
         echo "Restarting $NAME"
         stop
         start
@@ -63,7 +65,7 @@ case "$1" in
         status
     ;;
     *)
-        echo "Usage: $0 {start|stop|restart|reload|status}"
+        echo "Usage: $0 {start|stop|restart|force-reload|status}"
         exit 2
     ;;
 esac