Displaying 1 result from an estimated 1 matches for "asterisk_nice".
2005 Aug 05
1
starting asterisk with nice -5
...rt asterisk with nice -5.
Normally the command would be:
nice -5 asterisk
but asterisk start from the scrip on Gentoo as -U asterisk -G asterisk
Here is the script:
===============
depend() {
need net
use zaptel
}
start() {
local OPTS USER GROUP
if [[ -n "${ASTERISK_NICE}" ]]; then
if [[ ${ASTERISK_NICE} -ge -20 ]] && \
[[ ${ASTERISK_NICE} -le 19 ]]; then
OPTS="--nicelevel ${ASTERISK_NICE}"
else
eerror "Nice value must be between -20 and 1...