summaryrefslogtreecommitdiffstats
path: root/system/guix/config
diff options
context:
space:
mode:
author Hunter Sezen <ovariegata@yahoo.com>2016-09-23 04:47:57 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-09-23 04:50:24 +0700
commit4fe02926514b1bd3f4c8da070055f5ccfd8d667a (patch)
treeb1ec15259cca40f5e1fc79379f3a7420facf93ec /system/guix/config
parentea7c5ff5f4897323d9044455a00fc82782fec8d9 (diff)
downloadslackbuilds-4fe02926514b1bd3f4c8da070055f5ccfd8d667a.tar.gz
slackbuilds-4fe02926514b1bd3f4c8da070055f5ccfd8d667a.tar.xz
system/guix: Updated for version 0.11.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/guix/config')
-rw-r--r--system/guix/config/rc.guix16
1 files changed, 7 insertions, 9 deletions
diff --git a/system/guix/config/rc.guix b/system/guix/config/rc.guix
index a3d80ac6d7..b07ebce7aa 100644
--- a/system/guix/config/rc.guix
+++ b/system/guix/config/rc.guix
@@ -20,13 +20,13 @@ GUIX_LOG=/var/log/guix.log
GUIX_OPTS=--build-users-group=guixbuild
if [ -f /etc/default/$BASE ]; then
- . /etc/default/$BASE
+ . /etc/default/$BASE
fi
# Check guix is present
if [ ! -x $GUIX ]; then
- echo "$GUIX not present or not executable"
- exit 1
+ echo "$GUIX not present or not executable"
+ exit 1
fi
guix_start() {
@@ -44,7 +44,6 @@ guix_start() {
fi
}
-# Stop guix:
guix_stop() {
echo "stopping $BASE ..."
# If there is no PID file, ignore this request...
@@ -54,10 +53,9 @@ guix_stop() {
rm -f ${GUIX_PIDFILE}
}
-# Restart guix:
guix_restart() {
- guix_stop
- guix_start
+ guix_stop
+ guix_start
}
case "$1" in
@@ -72,9 +70,9 @@ case "$1" in
;;
'status')
if [ -f ${GUIX_PIDFILE} ] && ps -o cmd $(cat ${GUIX_PIDFILE}) | grep -q $BASE ; then
- echo "status of $BASE: running"
+ echo "status of $BASE: running"
else
- echo "status of $BASE: stopped"
+ echo "status of $BASE: stopped"
fi
;;
*)