aboutsummaryrefslogtreecommitdiffstats
path: root/astro/setiathome/files
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2003-06-06 11:54:29 +0800
committerdinoex <dinoex@FreeBSD.org>2003-06-06 11:54:29 +0800
commitbe3969d71000f813932aeada71b60ff8b9eb785a (patch)
tree03c211948b99881bc3eb5fa9cc54ecc281601287 /astro/setiathome/files
parent3b9492fa62a9e135b9f8d5c11906287d9e8461b5 (diff)
downloadfreebsd-ports-gnome-be3969d71000f813932aeada71b60ff8b9eb785a.tar.gz
freebsd-ports-gnome-be3969d71000f813932aeada71b60ff8b9eb785a.tar.zst
freebsd-ports-gnome-be3969d71000f813932aeada71b60ff8b9eb785a.zip
- Fix handling if "local_startup" is not default
maintainer contacted 2003-06-01 - Fix handling of ps in startup script maintainer contacted 2003-06-03 Submitted by: jonc@mobiledatanow.com - Drop alpha for now, only new alpha binary is for OpenBSD. ELF 64-bit LSB executable, Alpha (unofficial), version 1 (SYSV), for OpenBSD, dynamically linked (uses shared libs), stripped tested on beast: ELF binary type "0" not known.
Diffstat (limited to 'astro/setiathome/files')
-rw-r--r--astro/setiathome/files/setiathome.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/astro/setiathome/files/setiathome.sh b/astro/setiathome/files/setiathome.sh
index 4e6b7e7fe061..57e39b70ff68 100644
--- a/astro/setiathome/files/setiathome.sh
+++ b/astro/setiathome/files/setiathome.sh
@@ -29,11 +29,7 @@ seti_maxprocs=$(sysctl -n hw.ncpu) # max. number of processes to start
seti_sleep_time=21600 # time to sleep between restarts
set +a
-if ! PREFIX=$(expr ${rc_path} : "\(/.*\)/etc/rc\.d/${rc_file}\$"); then
- echo "${rc_file}: Cannot determine PREFIX." >&2
- echo "Please use the complete pathname." >&2
- exit 64
-fi
+PREFIX=%%PREFIX%%
rcconf_dir=${PREFIX}/etc
rcconf_file=rc.${rc_file%.sh}.conf
@@ -97,7 +93,7 @@ start)
exit 72
fi
done
- if ps axo comm | egrep ${program_file}; then
+ if ps axo command | egrep ${wrapper_path}; then
logger -sp ${syslog_facility} -t ${program_file} \
"unable to start: ${program_file} is already running."
exit 72