Skip to content

Commit 39cf6ae

Browse files
crpbjengelh
authored andcommitted
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.
1 parent 0a2d18a commit 39cf6ae

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

data/grommunio-admin-api.service

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
[Unit]
22
Description=grommunio admin api
3-
After=grommunio-admin-api.socket
4-
Requires=grommunio-admin-api.socket
53

64
[Service]
7-
WorkingDirectory=/usr/share/grommunio-admin-api/
8-
ExecStart=/usr/sbin/uwsgi --ini /usr/share/grommunio-admin-api/api-config.ini
5+
WorkingDirectory=/usr/share/grommunio-admin-api
6+
ExecStart=/usr/sbin/uwsgi --ini api-config.ini
97
User=grommunio
108
Group=nginx
119
SupplementaryGroups=grommunio

0 commit comments

Comments
 (0)