paulbsd-salt/states/gitea/templates/gitea.service.j2
Paul Lecuq a3b02771a4
All checks were successful
continuous-integration/drone/push Build is passing
created templates folder on each state
2023-03-11 10:08:26 +01:00

19 lines
467 B
Django/Jinja

{%- from "gitea/map.jinja" import gitea with context %}
[Unit]
Description=Gitea ({{ gitea.config.global.app_name }})
After=syslog.target
After=network.target
After=postgresql.service
[Service]
Type=simple
User={{ gitea.user }}
Group={{ gitea.user }}
WorkingDirectory={{ gitea.workingdir }}
ExecStart={{ gitea.binfile }} -w {{ gitea.workingdir }} web
Restart=always
Environment=USER={{ gitea.user }} HOME={{ gitea.workingdir }}
[Install]
WantedBy=multi-user.target