diff --git a/.packaging/gitea.service b/.packaging/gitea.service index 8c55c91..d97c4b6 100644 --- a/.packaging/gitea.service +++ b/.packaging/gitea.service @@ -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