2022-08-06 19:00:44 +02:00
|
|
|
[Unit]
|
2022-08-06 23:20:30 +02:00
|
|
|
Description=gunicorn daemon for recipes
|
2022-08-06 19:00:44 +02:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2022-08-06 23:20:30 +02:00
|
|
|
Restart=always
|
|
|
|
RestartSec=3
|
|
|
|
User=recipes
|
|
|
|
Group=www-data
|
2022-08-06 23:23:06 +02:00
|
|
|
WorkingDirectory=__FINALPATH__
|
|
|
|
EnvironmentFile=__FINALPATH__/.env
|
|
|
|
ExecStart=__FINALPATH__/bin/gunicorn --error-logfile /tmp/gunicorn_err.log --log-level debug --capture-output --bind unix:__FINALPATH__/recipes.sock recipes.wsgi:application
|
2022-08-06 19:00:44 +02:00
|
|
|
|
|
|
|
[Install]
|
2022-08-06 23:20:30 +02:00
|
|
|
WantedBy=multi-user.target
|