Skip to content

Commit 2282c65

Browse files
keks24lunny
authored andcommitted
Explicity indicate the socket unit to use the service unit "gitea.service" (#8804)
* rename socket file, make example more precise, use long parameter name * correct path * use the correct path to the configuration file according to the documentation * rename the socket unit back to 'gitea.main.socket', explicitly indicate that the socket unit should use the service file 'gitea.service'
1 parent a966a02 commit 2282c65

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contrib/systemd/gitea.service

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ After=network.target
3030
## PartOf=gitea.service
3131
##
3232
## [Socket]
33-
## ListenStream=
33+
## Service=gitea.service
34+
## ListenStream=<some_port>
3435
## NoDelay=true
3536
##
3637
## [Install]
@@ -53,7 +54,7 @@ WorkingDirectory=/var/lib/gitea/
5354
# If using unix socket: Tells Systemd to create /run/gitea folder to home gitea.sock
5455
# Manual cration would vanish after reboot.
5556
#RuntimeDirectory=gitea
56-
ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini
57+
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
5758
Restart=always
5859
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
5960
# If you want to bind Gitea to a port below 1024, uncomment

0 commit comments

Comments
 (0)