Closed
Description
Description
I struggle to understand why gitea unlinks the socket file on shutdown (L171):
gitea/modules/graceful/net_unix.go
Lines 166 to 174 in a701fd3
I believe this is unwanted behavior since it breaks
systemctl restart gitea
when using socket activation.
Gitea Version
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
# gitea.service
[Unit]
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
Wants=postgresql.service
After=postgresql.service
After=gitea.socket
Requires=gitea.socket
[Service]
RestartSec=2s
Type=simple
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/local/bin/gitea --config /etc/gitea/app.ini --custom-path /pool/git/custom --work-path /var/lib/gitea/ web
Restart=always
Environment=USER=git
[Install]
WantedBy=multi-user.target
# gitea.socket
[Unit]
Description=Gitea Web Socket
[Socket]
ListenStream=/run/gitea/gitea.sock
SocketMode=0666
SocketUser=git
SocketGroup=git
[Install]
WantedBy=sockets.target
Database
PostgreSQL