summaryrefslogtreecommitdiffstats
path: root/contrib/systemd/gitea.service
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/systemd/gitea.service')
-rw-r--r--contrib/systemd/gitea.service3
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