- Optimize check for existing process

Submitted by:	jeff@walters.name
This commit is contained in:
Dirk Meyer
2003-06-08 12:55:42 +00:00
parent 42c87c3d5f
commit 23dc4b0f62
+1 -1
View File
@@ -93,7 +93,7 @@ start)
exit 72
fi
done
if ps axo command | egrep ${wrapper_path}; then
if ps axo command | egrep ^${program_path}; then
logger -sp ${syslog_facility} -t ${program_file} \
"unable to start: ${program_file} is already running."
exit 72