FS#29274 - [systemd-sysvcompat] missing /bin/pidof

Attached to Project: Arch Linux
Opened by alex (kabolt) - Wednesday, 04 April 2012, 12:30 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 28 April 2012, 22:51 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
sysvinit contains pidof which is needed by some programs especially scripts.
The good thing: there is a tool with name pgrep which provides the same plus some more functionality so it is easy to simulate pidof via a script.
I add it as attachment.

   pidof (0 KiB)
This task depends upon

Closed by  Dave Reisner (falconindy)
Saturday, 28 April 2012, 22:51 GMT
Reason for closing:  Won't fix
Additional comments about closing:  individual daemons should rely on init-agnostic tools like pgrep instead.
Comment by Dave Reisner (falconindy) - Wednesday, 04 April 2012, 12:47 GMT
No, this is not the same as pidof. "pgrep foo" matches "foo" and "foobar".

Perhaps you could point out the "some scripts" which need pidof. I'd rather fix those.
Comment by alex (kabolt) - Wednesday, 04 April 2012, 15:24 GMT
Ok. a package which needs a fix is squid.
/etc/cron.weekly/squid
The rest were my own ones but I have forgotten that I use already ps -C^^.

Now to the optional part:
beyond /etc/rc.d are many scripts which could be fixed but this isn't really necessary because they depend on initscripts which depends on sysvinit
Comment by Dave Reisner (falconindy) - Wednesday, 04 April 2012, 15:29 GMT
Packages which put files in /etc/rc.d are irrelevant because no one using systemd should require them.

This package isn't meant to be a replacement for all the binaries that sysvinit provides -- just the canonical symlinks like init and reboot. Just as I did for sulogin, I'd sooner be inclined to push pidof itself to another package that's actually maintained (perhaps util-linux again) than to do something insane here.

Loading...