1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

- 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
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82527

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