diff options
-rwxr-xr-x | go.sh | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,6 +10,10 @@ CMD=$0 | |||
10 | 10 | ||
11 | self_install() | 11 | self_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" \ |