2024-12-30 13:35:21 +01:00
|
|
|
[Unit]
|
2025-01-08 20:10:56 +01:00
|
|
|
Description=Tandoor (gunicorn daemon)
|
|
|
|
After=network.target
|
2024-12-30 13:35:21 +01:00
|
|
|
|
|
|
|
[Service]
|
2025-01-08 20:10:56 +01:00
|
|
|
Type=simple
|
|
|
|
Restart=always
|
|
|
|
RestartSec=3
|
2024-12-30 13:35:21 +01:00
|
|
|
User={{var_tandoor_user}}
|
2025-01-08 20:10:56 +01:00
|
|
|
Group=www-data
|
|
|
|
WorkingDirectory={{var_tandoor_directory}}/program
|
|
|
|
EnvironmentFile={{var_tandoor_directory}}/program/.env
|
2025-01-08 21:59:45 +01:00
|
|
|
ExecStart={{var_tandoor_directory}}/program/bin/gunicorn --capture-output --bind unix:{{var_tandoor_directory}}/program/recipes.sock recipes.wsgi:application
|
2024-12-30 13:35:21 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|