From 266b528ae6ecd01624cc207e362029cfe20cf488 Mon Sep 17 00:00:00 2001
From: Erik von Reis <evonreis@caltech.edu>
Date: Thu, 20 Aug 2020 17:29:28 -0700
Subject: [PATCH] new argument system for rtcds now works well.  Tested all
 commands.  --userland flag added but does not yet do anything." "

---
 support/bin/rtcds.in | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/support/bin/rtcds.in b/support/bin/rtcds.in
index 6de5a745c..764c23cb9 100755
--- a/support/bin/rtcds.in
+++ b/support/bin/rtcds.in
@@ -423,7 +423,7 @@ Available commands:
   restart <sys>...|--all     restart running systems
   stop|kill <sys>...|--all   stop running systems
 
-  status <sys>               show status for system services
+  status [<sys>]             show status for system services
 
   log                        show logs for system services
     -f                         follow logs
@@ -548,23 +548,21 @@ case $cmd in
 	fi
     ;;
     'log')
-        args=
+    args=
 	if [[ $FOLLOW_FLAG ]] ; then
 	    args="-f"
-	    shift
 	fi
 	if [ -z "$1" ] ; then
 	    log "You must specify one system to show log."
 	    exit 2
 	fi
-        sys=$1
-        sudo journalctl $args --unit=rts*${sys}*
-        ;;
+    sys=$1
+    sudo journalctl $args --unit=rts*${sys}*
+    ;;
     'blog')
 	format=full
 	if [[ $INFO_FLAG ]] ; then
 	    format=info
-	    shift
 	fi
 	if [ -z "$1" ] ; then
 	    log "You must specify system to view."
-- 
GitLab