Package: captagent
Version: 6.1.0.20-2
Severity: normal
Tags: patch

Dear Maintainer,

Please see attached patch to fix lintian error and implement the
debian policy (non-optional) force-reload init script action.

Note that this trivial patch has not been tested. Review carefully.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
>From a1a960da04d89e6aa49079831a0bba04b1897d57 Mon Sep 17 00:00:00 2001
From: Andreas Henriksson <andr...@fatal.se>
Date: Mon, 2 Jan 2017 03:23:06 +0100
Subject: [PATCH] Add missing required force-reload init script action

The 'force-reload' action is required by LSB and is among the
(non-optional) 'shall' options in Debian policy.
Simply have it fall back on the restart action.

As a bonus, the condrestart action gets an alternative
name 'try-restart' which is the LSB documented name for
this action.
---
 debian/captagent.init | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/captagent.init b/debian/captagent.init
index 5cb8929..bed038c 100644
--- a/debian/captagent.init
+++ b/debian/captagent.init
@@ -77,11 +77,11 @@ case "$1" in
 	status)
 		status
 		;;
-	restart)
+	restart|force-reload)
 		stop
 		start
 		;;
-	condrestart)
+	try-restart|condrestart)
 		if [ -f $pidfile ] ; then
 			stop
 			start
-- 
2.11.0

Reply via email to