Package: smcroute
Version: 2.4.2-3
Severity: serious
Tags: patch upstream
Control: forwarded -1 https://github.com/troglobit/smcroute/pull/108

I am filing this bug on behalf of the current maintainer and upstream author of
smcroute, Joachim Nilsson, to create the necessary visibility for an issue
considered worth to be fixed for the Debian buster release. It was initially
filed by Hajo Noerenberg on upstream's Github repository as pull request 108.

> I'm using SMCRoute v2.4.2 (debian testing).
>
> The init script does not stop the daemon, an error is reported instead:
>
> # /etc/init.d/smcroute stop
> Stopping static multicast router daemon: smcrouted /usr/sbin/smcrouted: 
> invalid option -- 'k'
>
> I think one should use smcroutectl to stop the daemon.

The pull request is merged already, so the change is already part of the
upstream release 2.4.4.

Micha
commit 6f4e2c1ce8e0f6821e5254000ed43a4fd7744782
Author: hn <h...@users.noreply.github.com>
Date:   Mon Jan 28 09:56:33 2019 +0100

    fix init script 'stop' command

diff --git a/smcroute.init b/smcroute.init
old mode 100644
new mode 100755
index 00411b8..d0c7752
--- a/smcroute.init
+++ b/smcroute.init
@@ -18,6 +18,7 @@
 
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 DAEMON=/usr/sbin/smcrouted
+DAEMONCTL=/usr/sbin/smcroutectl
 DAEMON_OPTS=
 NAME=smcrouted
 DESC="static multicast router daemon"
@@ -50,7 +51,7 @@ stop() {
        local error
        local result
        log_begin_msg "Stopping $DESC: $NAME"
-       error=$($DAEMON -k 2>&1)
+       error=$($DAEMONCTL kill 2>&1)
        result=$?
        log_progress_msg ${error#ERRO: }
        log_end_msg $result

Reply via email to