debian/icecc-scheduler-systemd-wrapper
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | DAEMON=/usr/sbin/icecc-scheduler |
| 4 | CONFIGFILE=/etc/icecc/icecc.conf |
| 5 | |
| 6 | [ -e $CONFIGFILE ] && . $CONFIGFILE |
| 7 | |
| 8 | params="" |
| 9 | |
| 10 | if [ -n "$ICECC_NETNAME" ] ; then |
| 11 | params="$params --netname $ICECC_NETNAME" |
| 12 | fi |
| 13 | |
| 14 | if [ -n "$ICECC_SCHEDULER_LOG_FILE" ] ; then |
| 15 | params="$params --log-file $ICECC_SCHEDULER_LOG_FILE" |
| 16 | else |
| 17 | params="$params --log-file /var/log/icecc_scheduler" |
| 18 | fi |
| 19 | |
| 20 | |
| 21 | exec $DAEMON $params |