From 1e9cb44dc75c6edc83703bb93ca6946368c0fbec Mon Sep 17 00:00:00 2001 From: u Date: Sun, 9 Apr 2023 10:46:54 -0400 Subject: "go.sh install" will stop existing service and replace it --- go.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/go.sh b/go.sh index da662ec..e23404a 100755 --- a/go.sh +++ b/go.sh @@ -10,6 +10,10 @@ CMD=$0 self_install() { + if systemctl --user is-active "$UNIT" >/dev/null + then + systemctl --user stop "$UNIT" + fi systemctl --user reset-failed "$UNIT" 2>/dev/null systemd-run --user \ --unit "$UNIT" \ -- cgit v1.2.3