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
|
||||
|
||||
[Service]
|
||||
RestartSec=2s
|
||||
RestartSec=30s
|
||||
Type=simple
|
||||
User=gitea
|
||||
Group=gitea
|
||||
WorkingDirectory=/var/lib/gitea/
|
||||
ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
|
||||
Restart=always
|
||||
Restart=on-failure
|
||||
Environment="GITEA_WORK_DIR=/var/lib/gitea/"
|
||||
EnvironmentFile=-/etc/default/gitea
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user