Дамјан Георгиевски ba0d784960 documentation: update systemd deploy unit examples (#1950)
There's no need for PIDFile=, especially not for Type=notify services.
systemd knows the correct pid of the process it manages.

No need for the `--bind` option either, since gunicorn supports the
LISTEN_FDS environment variable and will use all of the sockets that systemd
provides. This way, it's also more flexible, since we can specify several
sockets in a .socket unit.

The .socket unit should specify User=www-data so that nginx can connect to the socket.
The service (gunicorn process) will inherit the file descriptor so it
doesn't even need permissions for the socket (it's nginx which needs
permissions).

tmpfiles.d is not needed.

replace ExecStop=/bin/kill with KillMode=mixed
2019-01-11 13:52:06 +01:00
..
2012-10-18 18:12:14 +02:00
2017-09-16 17:46:19 +03:00
2014-09-10 09:52:12 -04:00
2017-09-18 07:15:37 +03:00
2018-04-27 23:43:53 -07:00
2018-02-19 22:00:41 +03:00
2018-08-01 15:31:17 +03:00
2017-09-16 17:46:19 +03:00
2018-08-01 15:31:17 +03:00
2018-08-01 15:31:17 +03:00
2018-02-19 13:55:21 +02:00