ansible/roles/gitea/templates/systemd/system/gitea.service.j2

20 lines
419 B
Django/Jinja

{{ ansible_header | comment }}
[Unit]
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
[Service]
RestartSec=2s
Type=simple
User=git
Group=git
WorkingDirectory={{ gitea.data_path }}
ExecStart=/usr/local/sbin/gitea web --config /etc/gitea/app.ini
Restart=always
Environment=USER=git HOME={{ gitea.home_path }} GITEA_WORK_DIR={{ gitea.data_path }}
[Install]
WantedBy=multi-user.target