Hi Thomas,

This was previously discussed and rejected 5 years ago in thread:
"Alter daemon scheduling priority with renice for rc.d"

See: https://marc.info/?t=138746066600001


Subsequently I found login.conf is perfect. Some examples:


daemon-cellar:\
        :priority=18:\
        :tc=daemon:

avahi_daemon:\
        :tc=daemon-cellar:

cupsd:\
        :setenv=:\
        :priority=12:\
        :tc=daemon:

cvsyncd:\
        :tc=daemon-cellar:
                                                      
dbus_daemon:\
        :tc=daemon-cellar:

dhcp:\
        :priority=15:\
        :tc=daemon:

identd:\
        :priority=7:\
        :tc=daemon:

inetd:\
        :priority=10:\
        :tc=daemon:

nmbd:\
        :tc=daemon-cellar:

smbd:\
        :priority=9:\
        :tc=daemon:

spamd:\
        :priority=5:\
        :tc=daemon:

spamlogd:\
        :tc=spamd:

squid:\                                                                         
        :priority=1:\
        :openfiles-cur=4096:\
        :openfiles-max=8192:\
        :tc=daemon:

sshd:\
        :priority=-10:\
        :tc=daemon:

unbound:\
        :priority=-5:\
        :openfiles-cur=512:\
        :openfiles-max=718:\
        :tc=daemon:

nsd:\                                                                           
        :priority=-5:\
        :tc=daemon:


etc. etc. etc.


Cheers,
-- 
Craig Skinner | http://linkd.in/yGqkv7

Reply via email to