Index: rc.subr =================================================================== RCS file: /home/ncvs/src/etc/rc.subr,v retrieving revision 1.31.2.5 diff -u -r1.31.2.5 rc.subr --- rc.subr 19 Feb 2006 18:36:20 -0000 1.31.2.5 +++ rc.subr 29 Apr 2008 16:19:49 -0000 @@ -371,6 +371,10 @@ # # ${name}_nice n Nice level to run ${command} at. # +# ${name}_rtprio n Realtime scheduling priority to run ${command} at. +# +# ${name}_idprio n Idletime scheduling priority to run ${command} at. +# # ${name}_user n User to run ${command} as, using su(1) if not # using ${name}_chroot. # Requires /usr to be mounted. @@ -526,7 +530,8 @@ fi eval _chdir=\$${name}_chdir _chroot=\$${name}_chroot \ _nice=\$${name}_nice _user=\$${name}_user \ - _group=\$${name}_group _groups=\$${name}_groups + _group=\$${name}_group _groups=\$${name}_groups \ + _rtprio=\$${name}_rtprio _idprio=\$${name}_idprio if [ -n "$_user" ]; then # unset $_user if running as that user if [ "$_user" = "$(eval $IDCMD)" ]; then @@ -652,12 +657,16 @@ if [ -n "$_chroot" ]; then _doit="\ ${_nice:+nice -n $_nice }\ +${_rtprio:+rtprio $_rtprio }\ +${_idprio:+idprio $_idprio }\ chroot ${_user:+-u $_user }${_group:+-g $_group }${_groups:+-G $_groups }\ $_chroot $command $rc_flags $command_args" else _doit="\ ${_chdir:+cd $_chdir; }\ ${_nice:+nice -n $_nice }\ +${_rtprio:+rtprio $_rtprio }\ +${_idprio:+idprio $_idprio }\ $command $rc_flags $command_args" if [ -n "$_user" ]; then _doit="su -m $_user -c 'sh -c \"$_doit\"'" --- rc.subr-5stable.diff ends here ---