various fixes
[distro-setup] / distro-end
index 7f2f12ca453c095cf53b9027d60dcdafe76f1a24..317852291a0d21fb83764c2d7225f0c5a0f5dd66 100755 (executable)
@@ -561,7 +561,10 @@ User=znc
 WantedBy=multi-user.target
 EOF
     ser daemon-reload
-    m sgo znc
+    # avoid restarting if possible, reconnecting to irc is annoying.
+    if [[ $(ser is-active znc) != active ]]; then
+      m sgo znc
+    fi
     ###### stop znc setup #####
 
     end