aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-05-25 10:52:19 -0400
committerBill Nottingham <notting@redhat.com>2010-05-25 10:53:01 -0400
commitc9486ffd2452e83dc7ffa756b509ead3db698d9f (patch)
tree6d4bf052aa3ccfb9cab97d285ca1e1cb4f045ea6
parent603dd4ee649945506b0087be872dbf7b7636ca66 (diff)
downloadinitscripts-c9486ffd2452e83dc7ffa756b509ead3db698d9f.tar
initscripts-c9486ffd2452e83dc7ffa756b509ead3db698d9f.tar.gz
initscripts-c9486ffd2452e83dc7ffa756b509ead3db698d9f.tar.bz2
initscripts-c9486ffd2452e83dc7ffa756b509ead3db698d9f.tar.xz
initscripts-c9486ffd2452e83dc7ffa756b509ead3db698d9f.zip
Handle permission denied on reading PID file. (#595597)
-rw-r--r--rc.d/init.d/functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index d36310b4..86a5c35d 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -429,6 +429,10 @@ status() {
echo $"${base} dead but pid file exists"
return 1
;;
+ 4)
+ echo $"${base} status unknown due to insufficient privileges."
+ return 4
+ ;;
esac
if [ -z "${lock_file}" ]; then
lock_file=${base}