diff --git a/template b/template index de3944f..fb91c67 100755 --- a/template +++ b/template @@ -23,7 +23,7 @@ get_pid() { } is_running() { - [ -f "$pid_file" ] && ps `get_pid` > /dev/null 2>&1 + [ -s "$pid_file" ] && ps `get_pid` > /dev/null 2>&1 } case "$1" in