Skip to content

Commit bc5a479

Browse files
thomas-mc-worktechknowlogick
authored andcommitted
Add unix socket help (#8377)
When using unix socket as listener (`HTTP_ADDR = /run/gitea/gitea.socket`) then it's required to have the folder `/run/gitea` with appropriate owner/group. Manual creation leads to vanishing after reboot. This directive enables Systemd to handle this.
1 parent 93e2ce6 commit bc5a479

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/systemd/gitea.service

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Type=simple
2020
User=git
2121
Group=git
2222
WorkingDirectory=/var/lib/gitea/
23+
# If using unix socket: Tells Systemd to create /run/gitea folder to home gitea.sock
24+
# Manual cration would vanish after reboot.
25+
#RuntimeDirectory=gitea
2326
ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini
2427
Restart=always
2528
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea

0 commit comments

Comments
 (0)