mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Enhancements to allow starting up setiathome using idprio
PR: 30209 Submitted by: MAINTAINER Prompted by: Stephen J. Roznowski
This commit is contained in:
parent
f7336679e4
commit
66e460a4df
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47278
@ -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
|
||||
|
@ -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"
|
||||
;;
|
||||
|
@ -1,3 +1,4 @@
|
||||
**** %%PREFIX%%/etc/rc.setiathome.conf may be edited to tune some startup
|
||||
variables such as `seti_nice' defaulted to 15 and `seti_maxprocs'
|
||||
defaulted to your number of processors.
|
||||
defaulted to your number of processors. also, `seti_idprio' may be
|
||||
sets to 31. See idprio(1) for details.
|
||||
|
Loading…
Reference in New Issue
Block a user