diff options
Diffstat (limited to 'system/guix/config/rc.guix')
-rw-r--r-- | system/guix/config/rc.guix | 16 |
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 ;; *) |