summaryrefslogtreecommitdiff
path: root/astro/setiathome/files
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-09-01 16:49:30 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-09-01 16:49:30 +0000
commit66e460a4df8e180e42fb611135a76c473e334505 (patch)
treeaf636525e8b8df4bb0c9c039e7d410005037e190 /astro/setiathome/files
parentfix DISTNAME. (diff)
Enhancements to allow starting up setiathome using idprio
PR: 30209 Submitted by: MAINTAINER Prompted by: Stephen J. Roznowski
Notes
Notes: svn path=/head/; revision=47278
Diffstat (limited to 'astro/setiathome/files')
-rw-r--r--astro/setiathome/files/rc.setiathome.conf1
-rw-r--r--astro/setiathome/files/setiathome.sh5
2 files changed, 4 insertions, 2 deletions
diff --git a/astro/setiathome/files/rc.setiathome.conf b/astro/setiathome/files/rc.setiathome.conf
index c36aea15b64c..609e857e3268 100644
--- a/astro/setiathome/files/rc.setiathome.conf
+++ b/astro/setiathome/files/rc.setiathome.conf
@@ -10,3 +10,4 @@
# seti_user=nobody # user id to run as
# seti_nice=15 # nice level to run at
# seti_maxprocs=$(sysctl -n hw.ncpu) # max. number of processes to start
+# seti_idprio=31 # idletime scheduling priority to run at
diff --git a/astro/setiathome/files/setiathome.sh b/astro/setiathome/files/setiathome.sh
index 97c680febd25..44f7b4456d13 100644
--- a/astro/setiathome/files/setiathome.sh
+++ b/astro/setiathome/files/setiathome.sh
@@ -16,6 +16,7 @@ seti_proxy_args= # proxy arguments
seti_user=nobody # user id to run as
seti_nice=15 # nice level to run at
seti_maxprocs=$(sysctl -n hw.ncpu) # max. number of processes to start
+seti_idprio= # idletime scheduling priority to run at
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/${rc_file}\$"); then
echo "${rc_file}: Cannot determine PREFIX." >&2
@@ -67,10 +68,10 @@ start)
fi
done
for i in ${seti_wrksuff}; do
- su -fm ${seti_user} -c "\
+ ${seti_idprio:+idprio} ${seti_idprio} su -fm ${seti_user} -c "\
(cd ${seti_wrkdir}/${i} && exec ${program_path} \
${seti_std_args} ${seti_proxy_args} \
- ${seti_nice+-nice} ${seti_nice} >/dev/null &)"
+ ${seti_nice:+-nice} ${seti_nice} >/dev/null &)"
done
echo -n " SETI@home"
;;