1
0
mirror of https://gitlab.com/packaging/gitea synced 2024-12-18 08:03:29 +00:00
gitea_packaging/.packaging/gitea.service
morph027 2a4e0c8685
systemd: add Restart
Signed-off-by: morph027 <stefan.heitmueller@gmx.com>
2022-08-04 15:36:44 +02:00

18 lines
353 B
Desktop File

[Unit]
Description=Gitea (Git with a cup of tea)
After=network.target
[Service]
RestartSec=30s
Type=simple
User=gitea
Group=gitea
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
Restart=on-failure
Environment="GITEA_WORK_DIR=/var/lib/gitea/"
EnvironmentFile=-/etc/default/gitea
[Install]
WantedBy=multi-user.target