diff --git a/systemd-service-files/gunicorn.service b/systemd-service-files/gunicorn.service deleted file mode 100644 index 3042e3a..0000000 --- a/systemd-service-files/gunicorn.service +++ /dev/null @@ -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