Remove old gunicor

master
Tait Hoyem 2 years ago
parent a19bd23861
commit 3e7e81b4ed

@ -1,23 +0,0 @@
[Unit]
# basic description of service; replace with legit description
Description=A gUnicorn service for XYZ
[Service]
# change lowercase "user" to the user which will be running the program: this is usually the one whoes home directory the project is in
User=user
# change to where the directory of the project is
WorkingDirectory=/my/directory
# leave Type= and RemainAfterExit= alone; these specify the type of program that is being run
Type=simple
RemainAfterExit=yes
# replace "gunicorn" with output of `which uwsgi`; this command will not work the way it is
# also, replace myapp.sock with whatever your socket should be
ExecStart=gunicorn django.wsgi:application -w 2 -k uvicorn.workers.UvicornWorker
# instructions on how to kill the process
ExecStop=/bin/kill -HUP $MAINPID
# if process dies, should you restart it? leave it as always to auto restart
Restart=always
[Install]
# WantedBy=multi-user.target allows it to be enabled with systemctl to start on boot
WantedBy=multi-user.target
Loading…
Cancel
Save