Skip to content

Commit cf7dc2c

Browse files
committed
systemd/grommunio-admin-api.service
* remove requires+after to the same named socket. a .socket will automatically trigger a service if something want to talk to it. you will only ever need to enable the .socket and don't have to explicitly enable the .service. * remove full path for ini file as WorkingDirectory= already puts us in that directory.
1 parent 0a2d18a commit cf7dc2c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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)