Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
f7f22b24
Commit
f7f22b24
authored
Jul 17, 2015
by
Thomas Markwalder
Browse files
[master] keatctrl status can be run as non-root user
Merges branch 'trac3954'
parents
e7f36585
84275678
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/keactrl/keactrl.in
View file @
f7f22b24
...
...
@@ -111,8 +111,8 @@ check_running() {
# Get the PID from the PID file (if it exists)
get_pid_from_file
${
proc_name
}
if
[
${
_pid
}
-gt
0
]
;
then
# Use
kill -0
to check if PID is alive
kill
-
0
${
_pid
}
# Use
ps
to check if PID is alive
ps
-
p
${
_pid
}
1>/dev/null
if
[
$?
-eq
0
]
;
then
# No error, so PID IS ALIVE
_running
=
1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment