summaryrefslogtreecommitdiffstats
path: root/contrib/systemd
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-01-07 23:18:04 +0800
committerGitHub <noreply@github.com>2024-01-07 15:18:04 +0000
commit79da4bbc566cd3b1c028ca0b747c196fc02990f7 (patch)
tree398c3effbb520e6c0631ef9811751a52dd9617d0 /contrib/systemd
parent9296c31ff7c42a6d3ddc9a1d7a54b084d786425e (diff)
downloadgitea-79da4bbc566cd3b1c028ca0b747c196fc02990f7.tar.gz
gitea-79da4bbc566cd3b1c028ca0b747c196fc02990f7.zip
Suggest to use Type=simple for systemd service (#28717)
Although the systemd notify support was added, it seems that there are some problems (#28553, for the "non-installed" instance)
Diffstat (limited to 'contrib/systemd')
-rw-r--r--contrib/systemd/gitea.service3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/systemd/gitea.service b/contrib/systemd/gitea.service
index c097fb0d17..d205c6ee8b 100644
--- a/contrib/systemd/gitea.service
+++ b/contrib/systemd/gitea.service
@@ -52,7 +52,7 @@ After=network.target
# Uncomment the next line if you have repos with lots of files and get a HTTP 500 error because of that
# LimitNOFILE=524288:524288
RestartSec=2s
-Type=notify
+Type=simple
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
@@ -62,7 +62,6 @@ WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
-WatchdogSec=30s
# If you install Git to directory prefix other than default PATH (which happens
# for example if you install other versions of Git side-to-side with
# distribution version), uncomment below line and add that prefix to PATH