enable/disable crowdsec through systemd
@@ -379,6 +379,7 @@ delete_bins() {
# uninstall crowdsec and cscli
uninstall_crowdsec() {
systemctl stop crowdsec.service
+ systemctl disable crowdsec.service
${CSCLI_BIN} dashboard stop --remove
delete_bins
delete_plugins
@@ -522,6 +523,8 @@ main() {
# Set the cscli api pull cronjob
setup_cron_pull
+ systemctl enable crowdsec && log_info "crowdsec daemon enabled" || log_err "Unable to enable crowdsec daemon"
+
return
fi
