fix: sysv linux not support ps $pid (#299)

This commit is contained in:
Yujie.Zhao
2021-11-05 00:38:26 +08:00
committed by GitHub
parent a323c3813b
commit b9d1d5b727
+1 -1
View File
@@ -213,7 +213,7 @@ get_pid() {
}
is_running() {
[ -f "$pid_file" ] && ps $(get_pid) > /dev/null 2>&1
[ -f "$pid_file" ] && cat /proc/$(get_pid)/stat > /dev/null 2>&1
}
case "$1" in