summaryrefslogtreecommitdiffstats
path: root/systemd/gitea.service
diff options
context:
space:
mode:
authorGeorg2021-07-21 12:47:30 +0200
committerGeorg2021-07-21 12:47:30 +0200
commitb3cac70a7fd19c1f3e9aae6ac4fea528d7a85865 (patch)
tree6431154e8ea0e33e5f28d1302d20fdf9062f6a52 /systemd/gitea.service
parenta7b59a951b5b884bb2ba0fd1105918d2d5150fcd (diff)
downloadsystem-b3cac70a7fd19c1f3e9aae6ac4fea528d7a85865.tar.gz
system-b3cac70a7fd19c1f3e9aae6ac4fea528d7a85865.tar.bz2
system-b3cac70a7fd19c1f3e9aae6ac4fea528d7a85865.zip
Initial Systemd Service Run: 2/3
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'systemd/gitea.service')
-rw-r--r--systemd/gitea.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/systemd/gitea.service b/systemd/gitea.service
new file mode 100644
index 0000000..895f2f1
--- /dev/null
+++ b/systemd/gitea.service
@@ -0,0 +1,21 @@
+[Unit]
+Description=Gitea (Git with a cup of tea)
+After=syslog.target
+After=network.target
+Wants=mysqld.service
+After=mysqld.service
+
+[Service]
+RestartSec=2s
+Type=simple
+User=git
+Group=git
+WorkingDirectory=/var/lib/gitea/
+
+ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
+Restart=always
+Environment=USER=git HOME=/var/lib/git GITEA_WORK_DIR=/var/lib/gitea
+
+[Install]
+WantedBy=multi-user.target
+