2017-09-14 13:25:11 +02:00
|
|
|
[Unit]
|
2017-09-20 15:14:35 +02:00
|
|
|
Description=uWSGI instance for __NAME__
|
2017-09-14 13:25:11 +02:00
|
|
|
Requires=network.target
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2017-09-20 21:43:09 +02:00
|
|
|
User=__NAME__
|
|
|
|
Group=__NAME__
|
2017-09-14 13:25:11 +02:00
|
|
|
RemainAfterExit=yes
|
|
|
|
WorkingDirectory=__FINALPATH__
|
2017-09-18 15:08:21 +02:00
|
|
|
ExecStart=/usr/bin/uwsgi \
|
2017-09-21 10:47:37 +02:00
|
|
|
--ini __FINALPATH__/uwsgi.ini \
|
2017-09-25 17:02:24 +02:00
|
|
|
--socket __FINALPATH__/socket \
|
|
|
|
--logfile /var/log/__NAME__/__NAME__.log
|
2017-09-14 13:25:11 +02:00
|
|
|
Restart=always
|
|
|
|
StandardError=syslog
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|