1
0
mirror of https://gitlab.com/packaging/gitea synced 2024-12-18 08:03:29 +00:00

systemd: add Restart

Signed-off-by: morph027 <stefan.heitmueller@gmx.com>
This commit is contained in:
morph027 2022-08-04 15:36:44 +02:00
parent 5f329af2c8
commit 2a4e0c8685
No known key found for this signature in database
GPG Key ID: BF17A54BB873BE58

View File

@ -3,13 +3,13 @@ Description=Gitea (Git with a cup of tea)
After=network.target After=network.target


[Service] [Service]
RestartSec=2s RestartSec=30s
Type=simple Type=simple
User=gitea User=gitea
Group=gitea Group=gitea
WorkingDirectory=/var/lib/gitea/ WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
Restart=always Restart=on-failure
Environment="GITEA_WORK_DIR=/var/lib/gitea/" Environment="GITEA_WORK_DIR=/var/lib/gitea/"
EnvironmentFile=-/etc/default/gitea EnvironmentFile=-/etc/default/gitea