summarylogtreecommitdiffstats
path: root/gogs.service
diff options
context:
space:
mode:
Diffstat (limited to 'gogs.service')
-rw-r--r--gogs.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/gogs.service b/gogs.service
new file mode 100644
index 000000000000..f6cac7d2ac70
--- /dev/null
+++ b/gogs.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Gogs (Go Git Service) server
+After=syslog.target
+After=network.target
+
+[Service]
+Type=simple
+User=gogs
+Group=gogs
+ExecStart=/usr/share/gogs/gogs web --config /srv/gogs/conf/app.ini
+WorkingDirectory=/usr/share/gogs/
+
+[Install]
+WantedBy=multi-user.target