aboutsummaryrefslogtreecommitdiffstats
path: root/astro/setiathome
diff options
context:
space:
mode:
authorcjc <cjc@FreeBSD.org>2003-04-13 01:07:42 +0800
committercjc <cjc@FreeBSD.org>2003-04-13 01:07:42 +0800
commite564b9df23c42570e959d6e57e40a51c5b7dbe4a (patch)
tree01a331c93e2a83e42df3290fa4446c11fea0454a /astro/setiathome
parent8e12e49123abd2c8577878bc5055c8d169f17088 (diff)
downloadfreebsd-ports-graphics-e564b9df23c42570e959d6e57e40a51c5b7dbe4a.tar.gz
freebsd-ports-graphics-e564b9df23c42570e959d6e57e40a51c5b7dbe4a.tar.zst
freebsd-ports-graphics-e564b9df23c42570e959d6e57e40a51c5b7dbe4a.zip
Maintainer update: Do not assume the user running setiathome has a
Borne-ish shell. Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net>
Diffstat (limited to 'astro/setiathome')
-rw-r--r--astro/setiathome/Makefile2
-rw-r--r--astro/setiathome/files/setiathome.sh20
2 files changed, 12 insertions, 10 deletions
diff --git a/astro/setiathome/Makefile b/astro/setiathome/Makefile
index e5eaec458bf..171bf049815 100644
--- a/astro/setiathome/Makefile
+++ b/astro/setiathome/Makefile
@@ -6,7 +6,7 @@
PORTNAME= setiathome
PORTVERSION?= 3.03
-PORTREVISION?= 6
+PORTREVISION?= 7
CATEGORIES?= astro
MASTER_SITES= ftp://ftp.cdrom.com/pub/setiathome/ \
ftp://alien.ssl.berkeley.edu/pub/
diff --git a/astro/setiathome/files/setiathome.sh b/astro/setiathome/files/setiathome.sh
index 5ef7c315747..57b4a55d22a 100644
--- a/astro/setiathome/files/setiathome.sh
+++ b/astro/setiathome/files/setiathome.sh
@@ -74,17 +74,19 @@ start)
fi
done
for i in ${seti_wrksuff}; do
- su -fm ${seti_user} -c "\
- cd ${seti_wrkdir}/${i} || exit; \
- echo \$\$ > shpid.sah; \
- trap 'kill \$pid;exit' 15; \
- while :; do \
+ su -fm ${seti_user} -c "exec /bin/sh -T" << EOF > /dev/null &
+ cd ${seti_wrkdir}/${i} || exit
+ echo \$\$ > shpid.sah
+ trap 'kill \$pid;exit' 15
+ while :; do
${program_path} \
${seti_std_args} ${seti_proxy_args} \
- ${seti_nice:+-nice} ${seti_nice} & \
- pid=\$!; wait \$pid; \
- sleep ${seti_sleep}; \
- done > /dev/null" &
+ ${seti_nice:+-nice} ${seti_nice} &
+ pid=\$!; wait \$pid
+ sleep ${seti_sleep} &
+ pid=\$!; wait \$pid
+ done
+EOF
done
echo -n " SETI@home"
;;