Bug#914494: sysvinit-utils: pidof behavior changed with omit option -o

Alex Andreotti alex.andreotti at gmail.com
Fri Nov 23 21:26:53 GMT 2018


Package: sysvinit-utils
Version: 2.92~beta-1
Severity: normal

Dear Maintainer,

  * What led up to the situation?

I'm using a script that when start kills all the script with the same name but itself,
the syntax was:

pidof -o $$ -x script.sh

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

I did an apt upgrade today that installed sysvinit-utils_2.92~beta-1_amd64, my older version
in /var/cache/apt/archives was sysvinit-utils_2.88dsf-59.11_amd64 (Oct 14), the behavior
change should be in between.

If I use a shell `sh script.sh` or `zsh script.sh` it works, but `./script.sh` directly doesn't,
my /bin/sh link to dash, I don't think is relevant...

As a work around I use a for loop and compare with $$.


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

Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages sysvinit-utils depends on:
ii  init-system-helpers  1.56
ii  libc6                2.27-8
ii  util-linux           2.32.1-0.2

sysvinit-utils recommends no packages.

sysvinit-utils suggests no packages.

-- no debconf information




More information about the Debian-init-diversity mailing list