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

19 lines
403 B
Plaintext
Raw Permalink Normal View History

2020-06-18 22:34:30 +02:00
[Unit]
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
Requires=postgresql.service
[Service]
RestartSec=2s
Type=simple
User={{ gitea_user }}
2024-02-06 17:42:36 +01:00
Group={{ gitea_group }}
2020-06-18 22:34:30 +02:00
WorkingDirectory=/opt/gitea/
ExecStart=/opt/gitea/gitea web
Restart=always
Environment=USER={{ gitea_user }} HOME=/home/{{ gitea_user }} GITEA_WORK_DIR=/opt/gitea/
[Install]
WantedBy=multi-user.target