__pids_pidof calls pidof always with -c, which will result in it always failing
to get a pid when run as a non-root user. This propagates further to some
services not identified as running but having their subsys locked when a normal
user invokes the status action for a service that doesn't have a pid file.
A fix would be to run pidof with -c only when run as root, and without it when
non-root. Even though __pids_pidof in that case could still produce different
results for root/non-root, I think it would be an improvement over the current
Seems better to ignore -c when non-root in SysVinit.
Fixed in -16.
Hm, but then non-root users can't use the functionality of -c even for processes
they _do_ own?
I'm not sure that is a case that users will actually run into.
Package name is now sysvinit in Fedora.