summarylogtreecommitdiffstats
path: root/icecream-schedulerd
blob: 6e28204f45d0ce070bdef2f851ff93f499eda844 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
. /etc/icecream.conf

netname=
if test -n "${ICECREAM_NETNAME}"; then
    netname="-n ${ICECREAM_NETNAME}"
fi
logfile=""
if test -n "${ICECREAM_LOG_FILE}"; then
    touch ${ICECREAM_LOG_FILE}
    chown icecc:icecc ${ICECREAM_LOG_FILE}
    logfile="-l ${ICECREAM_LOG_FILE}"
fi

/usr/lib/icecream/sbin/icecc-scheduler -d ${netname} ${logfile} &>/dev/null