From b61982d0c0c043bdbac6c9c3b4be2c3c49b928b8 Mon Sep 17 00:00:00 2001 From: "Crist J. Clark" Date: Sat, 12 Apr 2003 17:07:42 +0000 Subject: Maintainer update: Do not assume the user running setiathome has a Borne-ish shell. Submitted by: Cyrille Lefevre --- astro/setiathome/files/setiathome.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'astro/setiathome/files') diff --git a/astro/setiathome/files/setiathome.sh b/astro/setiathome/files/setiathome.sh index 5ef7c315747f..57b4a55d22aa 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" ;; -- cgit v1.2.3