From 39cf6ae97d4bbda8078e75649d6d653c997a51a6 Mon Sep 17 00:00:00 2001 From: Christopher Bock Date: Thu, 13 Nov 2025 04:22:23 +0100 Subject: [PATCH] systemd service cleanup * Remove requires+after to the same named socket. A socket unit will automatically trigger a service if something wants to talk to it. You will only ever need to enable the socket unit and don't have to explicitly enable the service unit. * Remove full path for the ini file, since `WorkingDirectory=` already puts the process in that directory. --- data/grommunio-admin-api.service | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/data/grommunio-admin-api.service b/data/grommunio-admin-api.service index db127c6..7ebc963 100644 --- a/data/grommunio-admin-api.service +++ b/data/grommunio-admin-api.service @@ -1,11 +1,9 @@ [Unit] Description=grommunio admin api -After=grommunio-admin-api.socket -Requires=grommunio-admin-api.socket [Service] -WorkingDirectory=/usr/share/grommunio-admin-api/ -ExecStart=/usr/sbin/uwsgi --ini /usr/share/grommunio-admin-api/api-config.ini +WorkingDirectory=/usr/share/grommunio-admin-api +ExecStart=/usr/sbin/uwsgi --ini api-config.ini User=grommunio Group=nginx SupplementaryGroups=grommunio