Re: MBF proposal: pidof used without Depends: procps

Gioele Barabucci <[email protected]>
Newsgroups gmane.linux.debian.devel.general
Message-ID <[email protected]>
On 07/05/26 11:36, Chris Hofstaedtler wrote:
> * Gioele Barabucci <[email protected]> [260507 00:45]:
>> ---
>> Subject: ${SOURCE} uses pidof but does not depend on procps
>>
> [..]
>> Alternatively, you could remove all runtime uses of `pidof`.
> 
> That might be too strong a wording, as at least initramfs usecases have 
> TTBOMK no other option?

Maybe "try to remove"?

For most packages just adding `procps` will be more than enough.

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`
```

Regards,
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.