summarylogtreecommitdiffstats
path: root/nxt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nxt.sh')
-rw-r--r--nxt.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/nxt.sh b/nxt.sh
new file mode 100644
index 000000000000..0ba94544b67c
--- /dev/null
+++ b/nxt.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ active == $(systemctl is-active nxt) ]; then
+ exec xdg-open http://localhost:7876/
+fi
+
+MSG="Service isn't active. Try starting NXT with 'systemctl start nxt'"
+
+if hash notify-send &>/dev/null; then
+ exec notify-send -u critical "NXT" "$MSG"
+else
+ echo "NXT" "$MSG"
+fi