summarylogtreecommitdiffstats
path: root/nrs.sh
diff options
context:
space:
mode:
authorDavid Parrish2015-06-24 05:00:54 -0400
committerDavid Parrish2015-06-24 05:35:48 -0400
commit0671e770511c6a4b87a5e1af6f9da894fe51b2f3 (patch)
tree2ee0a8eaa5d1c5817a9e6728add284c4f0be0f19 /nrs.sh
parent2ed5342c926c3eb05fc6ad15ae64027a8e44e1c9 (diff)
downloadaur-0671e770511c6a4b87a5e1af6f9da894fe51b2f3.tar.gz
Add NXT Tor service
Diffstat (limited to 'nrs.sh')
-rwxr-xr-xnrs.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/nrs.sh b/nrs.sh
index d5f81ff43cd5..bf104b742c9b 100755
--- a/nrs.sh
+++ b/nrs.sh
@@ -1,6 +1,7 @@
#!/bin/bash
nxt_status=$(systemctl is-active nxt)
+nxt_tor_status=$(systemctl is-active nxt-tor)
which notify-send > /dev/null
is_libnotify_installed=$?
@@ -9,7 +10,7 @@ if [ $libnotify_installed ]; then
echo "libnotify_installed"
fi
-if [ $nxt_status != "active" ]; then
+if [ $nxt_status != "active" && $nxt_tor_status != "active" ]; then
start_nxt_message="NXT service isn't active. Try starting NXT with 'systemctl start nxt' if NRS doesn't load."
if [ $is_libnotify_installed ]; then
notify-send "NRS" "$start_nxt_message"