Description of problem:
According to https://fedoraproject.org/wiki/Packaging/SysVInitScript cronie
component init scripts have lsb compliance issue:
Init script should return code "4" if restarting service under
# su testuserqa -c "service crond restart"; echo $?
Stopping crond: [FAILED]
Starting crond: crond: can't open or create /var/run/crond.pid: Permission denied
Would be great if someone add this 'code 4' into the manual because I don't see it there. In example should be:
if [ $UID -ne 0 ] ; then
echo "User has insufficient privilege."
[ -x $exec ] || exit 5
[ -f $config ] || exit 6
Solved in upstream - commit 37710f64c51c8a794e0d89683ed1ee5b71274e5a
I'd probably add it to stop() as well.
(In reply to comment #3)
> I'd probably add it to stop() as well.