diff options
author | Thomas McWork <thomas.mc.work@gmail.com> | 2019-10-06 20:32:23 +0200 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-10-06 14:32:23 -0400 |
commit | bc5a479fefa77ee54a9fddecdbbb7e7991f22da1 (patch) | |
tree | 3d977b9e1e447061d7bf49084b21c36e7c0f6431 /contrib/systemd/gitea.service | |
parent | 93e2ce699babb60818c0d5e75eda39f0e9263216 (diff) | |
download | gitea-bc5a479fefa77ee54a9fddecdbbb7e7991f22da1.tar.gz gitea-bc5a479fefa77ee54a9fddecdbbb7e7991f22da1.zip |
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.
Diffstat (limited to 'contrib/systemd/gitea.service')
-rw-r--r-- | contrib/systemd/gitea.service | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/systemd/gitea.service b/contrib/systemd/gitea.service index d88df4a037..b7e6629ebf 100644 --- a/contrib/systemd/gitea.service +++ b/contrib/systemd/gitea.service @@ -20,6 +20,9 @@ Type=simple User=git Group=git 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 Restart=always Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea |