Commit f7f22b24 authored by Thomas Markwalder's avatar Thomas Markwalder
Browse files

[master] keatctrl status can be run as non-root user

Merges branch 'trac3954'
parents e7f36585 84275678
...@@ -111,8 +111,8 @@ check_running() { ...@@ -111,8 +111,8 @@ check_running() {
# Get the PID from the PID file (if it exists) # Get the PID from the PID file (if it exists)
get_pid_from_file ${proc_name} get_pid_from_file ${proc_name}
if [ ${_pid} -gt 0 ]; then if [ ${_pid} -gt 0 ]; then
# Use kill -0 to check if PID is alive # Use ps to check if PID is alive
kill -0 ${_pid} ps -p ${_pid} 1>/dev/null
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
# No error, so PID IS ALIVE # No error, so PID IS ALIVE
_running=1 _running=1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment