role_gitea/templates/gitea.service.j2

25 lines
445 B
Plaintext
Raw Permalink Normal View History

2023-07-06 15:56:19 +00:00
# {{ 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