FS#42855 - [uwsgi] Wrong service file
Attached to Project:
Community Packages
Opened by silverwyrda (SilverWyrda) - Thursday, 20 November 2014, 03:40 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 27 November 2014, 15:35 GMT
Opened by silverwyrda (SilverWyrda) - Thursday, 20 November 2014, 03:40 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 27 November 2014, 15:35 GMT
|
Details
Description:
There are several errors in the service file uwsgi@.service. First of all, a mistake in the path to the .ini config files in ExecStop and ExecReload. Then, the two commands invoked MUST have as an argument the master pid file. Consequently, I would recommend to use the linked service file which solves this issue. |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Thursday, 27 November 2014, 15:35 GMT
Reason for closing: Fixed
Thursday, 27 November 2014, 15:35 GMT
Reason for closing: Fixed
uwsgi@.service
ExecStart=/usr/bin/uwsgi --ini /etc/uwsgi/%I.ini
ExecReload=/usr/bin/uwsgi --ini /etc/uwsgi/%I.ini --reload $MAINPID
ExecStop=-/usr/bin/uwsgi --ini /etc/uwsgi/%I.ini --stop $MAINPID
This uses systemd's $MAINPID magic variable which doesn't require an extra file on the disk. Thoughts?
I'll look at the one in testing.