role_gitea/templates/gitea.service.j2

25 lines
445 B
Django/Jinja
Executable File

# {{ ansible_managed }}
[Unit]
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
[Service]
RestartSec=2s
Type=simple
User=gitea
Group=gitea
WorkingDirectory={{ gitea_install_path }}
ExecStart={{ gitea_install_path }}/gitea.bin web
Restart=always
Environment="USER=gitea"
Environment="HOME={{ gitea_install_path }}"
Environment="GITEA_WORK_DIR={{ gitea_install_path }}"
[Install]
WantedBy=multi-user.target