diff options
author | Jakob Stendahl <jakob.stendahl@outlook.com> | 2018-11-30 10:46:56 +0100 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2018-11-30 10:46:56 +0100 |
commit | 949dd6a5b0d6fce587a51904acabe3e2191924f9 (patch) | |
tree | 59ab24342cf5f2d25c8cb40a5354c9a33fa547c7 /bin/luxcena-neo-cli.sh | |
parent | 5c133c750682d8d15c7fdcf5a57fc02aedc9303d (diff) | |
download | Luxcena-Neo-949dd6a5b0d6fce587a51904acabe3e2191924f9.tar.gz Luxcena-Neo-949dd6a5b0d6fce587a51904acabe3e2191924f9.zip |
:construction: Make simple shortcut to view service status
Diffstat (limited to 'bin/luxcena-neo-cli.sh')
-rwxr-xr-x | bin/luxcena-neo-cli.sh | 4 |
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 |