[Pkg-sysvinit-devel] Bug#825870: sysvinit-utils: Second stop command does not use process matchers name and pidfile

Steven Roose stevenroose at gmail.com
Tue May 31 00:15:10 UTC 2016


Package: sysvinit-utils
Version: 2.88dsf-59
Severity: normal
Tags: patch

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
I used /etc/init.d/skeleton to make a script for a daemon. 
The daemon does not make it's own pidfile, so I added following relevant variables:
PIDFILE=/pidfile
START_ARGS=" --make-pidfile"
STOP_ARGS=" --remove-pidfile"
NAME=
DAEMON=

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
/etc/init.d/mydaemon start
/etc/init.d/mydaemon stop

   * What was the outcome of this action?
The following error message:
"start-stop-daemon: --remove-pidfile requires --pidfile"

   * What outcome did you expect instead?
The daemon would be stopped.


-- System Information:
Debian Release: 8.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sysvinit-utils depends on:
ii  libc6        2.19-18+deb8u4
ii  libselinux1  2.3-2
ii  startpar     0.59-3

sysvinit-utils recommends no packages.

Versions of packages sysvinit-utils suggests:
pn  bootlogd  <none>
pn  sash      <none>

-- debconf information excluded
-------------- next part --------------
A non-text attachment was scrubbed...
Name: init-d-script.patch
Type: text/x-diff
Size: 868 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20160531/45efacbb/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: init-d-script.patch
Type: text/x-diff
Size: 868 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20160531/45efacbb/attachment-0001.patch>


More information about the Pkg-sysvinit-devel mailing list