ansible-base/roles/tandoor/templates/systemd-unit.j2

17 lines
544 B
Text
Raw Normal View History

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
ExecStart={{var_tandoor_directory}}/program/bin/gunicorn --error-logfile {{var_tandoor_directory}}/program/gunicorn_err.log --log-level info --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