From ee96865744e5607a44c1b154b517ba1d25a6af55 Mon Sep 17 00:00:00 2001 From: Kelly Selden Date: Mon, 7 Dec 2015 10:58:53 -0500 Subject: [PATCH] check for file with content --- template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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