aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2018-11-30 10:46:56 +0100
committerJakob Stendahl <jakob.stendahl@outlook.com>2018-11-30 10:46:56 +0100
commit949dd6a5b0d6fce587a51904acabe3e2191924f9 (patch)
tree59ab24342cf5f2d25c8cb40a5354c9a33fa547c7 /bin
parent5c133c750682d8d15c7fdcf5a57fc02aedc9303d (diff)
downloadLuxcena-Neo-949dd6a5b0d6fce587a51904acabe3e2191924f9.tar.gz
Luxcena-Neo-949dd6a5b0d6fce587a51904acabe3e2191924f9.zip
:construction: Make simple shortcut to view service status
Diffstat (limited to 'bin')
-rwxr-xr-xbin/luxcena-neo-cli.sh4
1 files changed, 4 insertions, 0 deletions
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