blob: 236fee4a03d802cae2bef4cdc1011dae25d74079 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
nxt_status=$(systemctl is-active nxt)
nxt_tor_status=$(systemctl is-active nxt-tor)
which notify-send > /dev/null
is_libnotify_installed=$?
if [ $libnotify_installed ]; then
echo "libnotify_installed"
fi
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"
fi
echo "$start_nxt_message"
fi
xdg-open http://localhost:7876/
|