summaryrefslogtreecommitdiffstats
path: root/contrib/systemd
diff options
context:
space:
mode:
authorRamon Fischer <Ramon_Fischer@hotmail.de>2019-11-04 05:42:30 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2019-11-04 12:42:30 +0800
commit2282c659ddab12dc4ffd505585a3b39b59c14908 (patch)
tree179817f301490060351c43cf8179a735df87cb8f /contrib/systemd
parenta966a0298ea1a545c383541ca4e72c61de1ed59e (diff)
downloadgitea-2282c659ddab12dc4ffd505585a3b39b59c14908.tar.gz
gitea-2282c659ddab12dc4ffd505585a3b39b59c14908.zip
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'
Diffstat (limited to 'contrib/systemd')
-rw-r--r--contrib/systemd/gitea.service5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/systemd/gitea.service b/contrib/systemd/gitea.service
index b5aa6ffcb5..a69588893b 100644
--- a/contrib/systemd/gitea.service
+++ b/contrib/systemd/gitea.service
@@ -30,7 +30,8 @@ After=network.target
## PartOf=gitea.service
##
## [Socket]
-## ListenStream=
+## Service=gitea.service
+## ListenStream=<some_port>
## NoDelay=true
##
## [Install]
@@ -53,7 +54,7 @@ WorkingDirectory=/var/lib/gitea/
# If using unix socket: Tells Systemd to create /run/gitea folder to home gitea.sock
# Manual cration would vanish after reboot.
#RuntimeDirectory=gitea
-ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini
+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
# If you want to bind Gitea to a port below 1024, uncomment