Skip to content

Commit 2b9a197

Browse files
committed
fix
1 parent a43c7b8 commit 2b9a197

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

contrib/systemd/gitea.service

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ After=network.target
5252
# Uncomment the next line if you have repos with lots of files and get a HTTP 500 error because of that
5353
# LimitNOFILE=524288:524288
5454
RestartSec=2s
55-
Type=notify
55+
Type=simple
5656
User=git
5757
Group=git
5858
WorkingDirectory=/var/lib/gitea/
@@ -62,7 +62,6 @@ WorkingDirectory=/var/lib/gitea/
6262
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
6363
Restart=always
6464
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
65-
WatchdogSec=30s
6665
# If you install Git to directory prefix other than default PATH (which happens
6766
# for example if you install other versions of Git side-to-side with
6867
# distribution version), uncomment below line and add that prefix to PATH

modules/graceful/manager_common.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import (
1010
"time"
1111
)
1212

13+
// FIXME: it seems that there is a bug when using systemd Type=notify: the "Install Page" (INSTALL_LOCK=false) doesn't notify properly.
14+
// At the moment, no idea whether it also affects Windows Service, or whether it's a regression bug. It needs to be investigated later.
15+
1316
type systemdNotifyMsg string
1417

1518
const (

0 commit comments

Comments
 (0)