fedora-sysv / initscripts

📜 Scripts to bring up network interfaces and legacy utilities in Fedora.
GNU General Public License v2.0
46 stars 51 forks source link

Use pgrep instead of pidof #336

Closed jamacku closed 3 years ago

jamacku commented 4 years ago

It would be nice to use pgrep instead of pidof. pgrep is reimplementation (equivalent) of pidof with better support.

In initscripts we use pidof only at one place. https://github.com/fedora-sysv/initscripts/blob/master/etc/rc.d/init.d/functions#L219-L223

jamacku commented 3 years ago

Apparently bug in pidof is going to be fix, so there is no more need to use pgrep instead of pidof.

https://bugzilla.redhat.com/show_bug.cgi?id=1860486