diff --git a/gunicorn-wwdtmgraphs.service.dist b/gunicorn-wwdtmgraphs.service.dist new file mode 100644 index 0000000..06e766d --- /dev/null +++ b/gunicorn-wwdtmgraphs.service.dist @@ -0,0 +1,27 @@ +[Unit] +Description=Wait Wait Graphs Shite Web Application +After=network.target + +[Service] +; Set the user and group the service should run as +User= +Group= + +; Set to base location of the application directory +WorkingDirectory= + +; Add the full path to the application's venv/bin directory +; to PATH +Environment="PATH=" + +; Also add the full path to the application's venv/bin directory +; before 'gunicorn' +ExecStart=gunicorn graphs:app + +; Uncomment the following two lines to enable auto-restart +; on application failure +Restart=on-failure +RestartSec=10s + +[Install] +WantedBy=multi-user.target