Re: MBF proposal: pidof used without Depends: procps

Guillem Jover <[email protected]>
Newsgroups gmane.linux.debian.devel.general
Message-ID <[email protected]>
Hi!

On Thu, 2026-05-07 at 11:53:42 +0200, Gioele Barabucci wrote:
> More constrained programs could exploit other Essential utilities
> like grep or find. For instance (hat tip to Simon McVittie):
> 
> ```
> find /proc -maxdepth 2 -path '/proc/[0-9]*/exe' \
>   -xtype f -lname /usr/bin/$daemon -print -quit`
> ```

Ugh, please no. Besides being unportable, this will not match on
deleted filenames, to start with.

As mentioned on #810018, I've now implemented support for printing the
matched PIDs in start-stop-daemon (not sure yet whether to make it a
command or an option), but the functionality should be present in the
next dpkg release.

Thanks,
Guillem
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.