/etc/rc.d/program nice value
I'm running some programs using the /etc/rc.d/ and /usr/local/etc/rc.d/ startup scripts. I am wondering if there is some standard way to run these programs at a higher nice value. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: /etc/rc.d/program nice value
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nerius Landys wrote: I'm running some programs using the /etc/rc.d/ and /usr/local/etc/rc.d/ startup scripts. I am wondering if there is some standard way to run these programs at a higher nice value. Hi Nerius, Check out the list of variables in /etc/rc.subr. This should help you: # ${name}_nicen Nice level to run ${command} at. That means you can write this in your /etc/rc.conf file: apache22_enable=YES apache22_nice=10 Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLULjv0sRouByUApARAv7zAJ4tbzuO/iixDQ4uXuko3eZV3vd3vQCgxS6A +iD7qTmAyK5Dff6WWSihtY4= =o29l -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: /etc/rc.d/program nice value
That means you can write this in your /etc/rc.conf file: apache22_enable=YES apache22_nice=10 Hope that helps, Oh yes, that helps a lot. Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: /etc/rc.d/program nice value
On Fri, 15 Jan 2010 13:50:23 -0500 Greg Larkin glar...@freebsd.org wrote: Nerius Landys wrote: I'm running some programs using the /etc/rc.d/ and /usr/local/etc/rc.d/ startup scripts. I am wondering if there is some standard way to run these programs at a higher nice value. Hi Nerius, Check out the list of variables in /etc/rc.subr. This should help you: # ${name}_nicen Nice level to run ${command} at. That will work if the script lets /etc/rc.subr start the daemon. If it implements its own start function then ${name}_nice will have to be explicitly supported by the script - not all do that unfortunately. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org