Skip to content

Commit 1d4e3ab

Browse files
committed
systemd/grommunio-admin-api.service
* remove useless 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 in such a scenario. stichwort: triggering units * add after=mysql.service to not get any silly database errors anymore during boot because the database isn't accessible in the first try. the alias mysql.service was chosen to have a broader compatibility for anyone who isn't using mariadb.
1 parent 0a2d18a commit 1d4e3ab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

data/grommunio-admin-api.service

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

65
[Service]
7-
WorkingDirectory=/usr/share/grommunio-admin-api/
6+
WorkingDirectory=/usr/share/grommunio-admin-api
87
ExecStart=/usr/sbin/uwsgi --ini /usr/share/grommunio-admin-api/api-config.ini
98
User=grommunio
109
Group=nginx

0 commit comments

Comments
 (0)