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 nonprivileged user: # su testuserqa -c "service crond restart"; echo $? Stopping crond: [FAILED] Starting crond: crond: can't open or create /var/run/crond.pid: Permission denied [FAILED] 1 now: 1 expected: 4
Would be great if someone add this 'code 4' into the manual because I don't see it there. In example should be: start() { if [ $UID -ne 0 ] ; then echo "User has insufficient privilege." exit 4 fi [ -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. Good idea, commit 8898b7040109093af1181cc947a5aa6943a8648d