summarylogtreecommitdiffstats
path: root/icecream-schedulerd
blob: 10bc0ed710976a686451b08dfd7717361073b535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

. /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 icecream:icecream $ICECREAM_LOG_FILE
    logfile="-l $ICECREAM_LOG_FILE"
fi

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