infra/roles/gitea/templates/gitea.service.j2

21 lines
439 B
Plaintext
Raw Normal View History

2022-10-07 15:01:40 +00:00
[Unit]
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
Wants=postgresql.service
After=postgresql.service
2022-10-09 21:03:53 +00:00
Requires=gitea-backup.timer
2022-10-07 15:01:40 +00:00
[Service]
RestartSec=2s
Type=simple
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
[Install]
WantedBy=multi-user.target