mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-27 01:27:10 +00:00
Fix systemd service unit
This commit is contained in:
parent
df1a1cb5de
commit
d1e9693647
@ -7,14 +7,16 @@ Description=Mediatek Django project
|
|||||||
After=syslog.target
|
After=syslog.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=club-med
|
|
||||||
WorkingDirectory=/home/c/club-med/django-med
|
WorkingDirectory=/home/c/club-med/django-med
|
||||||
|
Environment="PATH=/home/c/club-med/django-med/venv/bin"
|
||||||
ExecStart=/home/c/club-med/django-med/entrypoint.sh
|
ExecStart=/home/c/club-med/django-med/entrypoint.sh
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
KillSignal=SIGQUIT
|
KillSignal=SIGQUIT
|
||||||
Type=notify
|
Type=notify
|
||||||
StandardError=syslog
|
StandardError=syslog
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
StandardOutput=append:/home/c/club-med/django-med/service.log
|
||||||
|
StandardError=append:/home/c/club-med/django-med/service_error.log
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -18,9 +18,4 @@ python manage.py collectstatic --no-input
|
|||||||
uwsgi --socket "$(pwd)/uwsgi.sock" --chmod-socket=600 --master --plugins python3 \
|
uwsgi --socket "$(pwd)/uwsgi.sock" --chmod-socket=600 --master --plugins python3 \
|
||||||
--module med.wsgi:application --env DJANGO_SETTINGS_MODULE=med.settings \
|
--module med.wsgi:application --env DJANGO_SETTINGS_MODULE=med.settings \
|
||||||
--processes 4 --harakiri=20 --max-requests=5000 --vacuum \
|
--processes 4 --harakiri=20 --max-requests=5000 --vacuum \
|
||||||
--static-map /static="$(pwd)/static"
|
--static-map /static="$(pwd)/static" --protocol=fastcgi
|
||||||
|
|
||||||
#uwsgi --chdir="$(pwd)" \
|
|
||||||
# --pidfile="$(pwd)/uwsgi.pid" \
|
|
||||||
# --daemonize="$(pwd)/uwsgi.log" \
|
|
||||||
# --protocol=fastcgi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user