Subject: ascii 2.1 - saned init script is broken

From: Martin Finkbeiner <[email-masked]>
Date: Fri, 23 Oct 2020 23:02:48 +0200

Package: <sane-utils  1.0.25-4.1+deb9u2>

SysV-init:

s. Debian Bug report logs - #871543
broken init script (since 2017)

(bugs.debian.org/cgi-bin/bugreport.cgi?bug=871543)

bug: start-stop-daemon

command:
# /etc/init.d/saned stop

doesn't stop saned

solving problem according to Debian's bug report:

# sed -i -e 's/--retry --exec $DAEMON/--retry 10/g' /etc/init.d/saned

worked for me, after my dist-upgrade jessie -> ascii 2.1 stopped with

"Installing new version of config file /etc/init.d/saned ...
[....] Restarting SANE network scanner server: saned[....] Stopping  
SANE network scanner server: sanedstart-stop-daemon: invalid schedule  
item (must be [-]<signal-name>, -<signal-number>, <timeout> or 'forever'
Try 'start-stop-daemon --help' for more information.
invoke-rc.d: initscript saned, action "restart" failed.
error processing package sane-utils (--configure):
  subprocess installed post-installation script returned error exit status 3".

Best regards
Martin