diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2003-06-11 20:58:34 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2003-06-11 20:58:34 +0000 |
commit | 99c15479b884f7497fb6397edb6788cb30418556 (patch) | |
tree | 5b3a2246c5bfc76786d3bb0acab01861e6730285 /astro/setiathome/files | |
parent | IGNORE while this is identical to the base system tar. (diff) |
- backout lastest fixes
Submitted by: cyrille.lefevre@laposte.net
Notes
Notes:
svn path=/head/; revision=82807
Diffstat (limited to 'astro/setiathome/files')
-rw-r--r-- | astro/setiathome/files/setiathome.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/astro/setiathome/files/setiathome.sh b/astro/setiathome/files/setiathome.sh index 7325cd14db13..b30de99e664f 100644 --- a/astro/setiathome/files/setiathome.sh +++ b/astro/setiathome/files/setiathome.sh @@ -29,7 +29,11 @@ seti_maxprocs=$(sysctl -n hw.ncpu) # max. number of processes to start seti_sleep_time=21600 # time to sleep between restarts set +a -PREFIX=%%PREFIX%% +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 rcconf_dir=${PREFIX}/etc rcconf_file=rc.${rc_file%.sh}.conf @@ -78,6 +82,11 @@ start) "unable to start: ${program_path} is missing." exit 72 fi + if [ ! -x ${wrapper_path} ]; then + logger -sp ${syslog_facility} -t ${wrapper_file} \ + "unable to start: ${wrapper_path} is missing." + exit 72 + fi for i in ${seti_wrksuff}; do if [ ! -d ${seti_wrkdir}/${i} ]; then logger -sp ${syslog_facility} -t ${program_file} \ @@ -93,7 +102,7 @@ start) exit 72 fi done - if ps axo command | egrep ^${program_path}; then + if ps axo ucomm | egrep ${program_file}; then logger -sp ${syslog_facility} -t ${program_file} \ "unable to start: ${program_file} is already running." exit 72 |