...
Bloc de code | ||||
---|---|---|---|---|
| ||||
# [Unit] Description=Pod uWSGI app After=syslog.target [Service] ExecStartPre=-/usr/bin/bash -c 'export WORKON_HOME=/data/www/%userpod%/.virtualenvs; export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3.6; cd /data/www/%userpod%/django_projects/podv2; source /usr/bin/virtualenvwrapper.sh; workon django_pod;' ExecStart=/usr/bin/bash -c '/usr/bin/uwsgi --ini /data/www/%userpod%/django_projects/podv2/pod/custom/pod_uwsgi.ini --enable-threads --uid %userpod% --gid nginx --pidfile /var/rundata/www/%userpod%/django_projects/podv2/uwsgi/pod.pid' ExecStop=/usr/bin/uwsgi --stop /data/www/var%userpod%/rundjango_projects/podv2/uwsgi/pod.pid User=%userpod% Group=nginx Restart=on-failure Type=notify TimeoutStopSec=15 KillSignal=SIGQUIT RemainAfterExit=yes StandardError=syslog NotifyAccess=all StartLimitBurst=0 [Install] WantedBy=multi-user.target limit-as=512 |
...