From 949dd6a5b0d6fce587a51904acabe3e2191924f9 Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Fri, 30 Nov 2018 10:46:56 +0100 Subject: :construction: Make simple shortcut to view service status --- bin/luxcena-neo-cli.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/luxcena-neo-cli.sh b/bin/luxcena-neo-cli.sh index a8384db..763bbbe 100755 --- a/bin/luxcena-neo-cli.sh +++ b/bin/luxcena-neo-cli.sh @@ -106,6 +106,10 @@ elif [ "$action" == "start" ]; then systemctl start luxcena-neo elif [ "$action" == "stop" ]; then systemctl stop luxcena-neo +elif [ "$action" == "status" ]; then + printf '\e[93m%s\e[0m\n' "---Service status------------------" + systemctl status luxcena-neo + printf '\e[93m%s\e[0m\n' "-----------------------------------" else usage fi -- cgit v1.2.3