summarylogtreecommitdiffstats
path: root/icecream-schedulerd
diff options
context:
space:
mode:
authorBen Widawsky2015-12-24 10:02:06 -0800
committerBen Widawsky2015-12-24 11:25:32 -0800
commit083f39fdb08b4070d22a7e6d5a466767a977ad84 (patch)
tree0b1a39d0720118ff6d307cadf707e78a231633a1 /icecream-schedulerd
parent5e8f7eebc937c2ee9a560ab08060a419c5206011 (diff)
downloadaur-083f39fdb08b4070d22a7e6d5a466767a977ad84.tar.gz
Merge Fedora Core's systemd files to ours
I assume Fedora team knows what they're doing with regard to systemd. All other changes will come directly from the upstream package. This doesn't pull in the wrappers used by Fedora. Note that this diverges from SuSE's explicit daemonizing, and instead relying on systemd, thus the removal of -d
Diffstat (limited to 'icecream-schedulerd')
-rw-r--r--icecream-schedulerd17
1 files changed, 9 insertions, 8 deletions
diff --git a/icecream-schedulerd b/icecream-schedulerd
index 6e28204f45d0..10bc0ed71097 100644
--- a/icecream-schedulerd
+++ b/icecream-schedulerd
@@ -1,15 +1,16 @@
-#!/bin/bash
+#!/bin/sh
+
. /etc/icecream.conf
netname=
-if test -n "${ICECREAM_NETNAME}"; then
- netname="-n ${ICECREAM_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}"
+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 -d ${netname} ${logfile} &>/dev/null
+/usr/lib/icecream/sbin/icecc-scheduler -u icecream ${netname} ${logfile} &>/dev/null