diff --git a/src/agent-sec-core/agent-sec-core.spec.in b/src/agent-sec-core/agent-sec-core.spec.in index 192e7a0c2..a3958a68e 100644 --- a/src/agent-sec-core/agent-sec-core.spec.in +++ b/src/agent-sec-core/agent-sec-core.spec.in @@ -97,6 +97,7 @@ Built with maturin as a Rust native Python extension. %post -n agent-sec-cli %systemd_user_post agent-sec-core.service +systemctl --user enable agent-sec-core.service 2>/dev/null || true %preun -n agent-sec-cli %systemd_user_preun agent-sec-core.service