diff --git a/netoik-api.spec b/netoik-api.spec index 1ac74ea..56a065a 100644 --- a/netoik-api.spec +++ b/netoik-api.spec @@ -31,6 +31,7 @@ id %{name} || useradd --no-create-home --shell=%{_sbindir}/nologin --user-group %post systemctl daemon-reload systemctl restart %{name}-server.service +systemctl enable %{name}-server.service %preun [ $1 -eq 0 ] && systemctl stop %{name}-server.service