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:
parent
5f329af2c8
commit
2a4e0c8685
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user