init script: fix warning when daemon installed first time

This commit is contained in:
Pavel Kartavyy 2015-03-25 18:49:11 +03:00
parent db117fe7e8
commit cac04c89b2

View File

@ -72,7 +72,7 @@ specific_log_file_for_each_process()
find_pid_files()
{
find $PIDDIR -regex "$PIDFILE_RE"
[[ -e $PIDDIR ]] && find $PIDDIR -regex "$PIDFILE_RE"
}
is_running()