aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2003-06-08 20:55:42 +0800
committerdinoex <dinoex@FreeBSD.org>2003-06-08 20:55:42 +0800
commit0d1857b44886efc4ead54ba908a248267d3e1b8a (patch)
tree775736b4e636fc6bbb6149f8797dc936a1c60347
parentc0655a86f0d40e3a9d09cd127a77100135dcbec6 (diff)
downloadfreebsd-ports-gnome-0d1857b44886efc4ead54ba908a248267d3e1b8a.tar.gz
freebsd-ports-gnome-0d1857b44886efc4ead54ba908a248267d3e1b8a.tar.zst
freebsd-ports-gnome-0d1857b44886efc4ead54ba908a248267d3e1b8a.zip
- Optimize check for existing process
Submitted by: jeff@walters.name
-rw-r--r--astro/setiathome/files/setiathome.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/astro/setiathome/files/setiathome.sh b/astro/setiathome/files/setiathome.sh
index 57e39b70ff68..7325cd14db13 100644
--- a/astro/setiathome/files/setiathome.sh
+++ b/astro/setiathome/files/setiathome.sh
@@ -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