summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgo.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/go.sh b/go.sh
index da662ec..e23404a 100755
--- a/go.sh
+++ b/go.sh
@@ -10,6 +10,10 @@ CMD=$0
10 10
11self_install() 11self_install()
12{ 12{
13 if systemctl --user is-active "$UNIT" >/dev/null
14 then
15 systemctl --user stop "$UNIT"
16 fi
13 systemctl --user reset-failed "$UNIT" 2>/dev/null 17 systemctl --user reset-failed "$UNIT" 2>/dev/null
14 systemd-run --user \ 18 systemd-run --user \
15 --unit "$UNIT" \ 19 --unit "$UNIT" \