summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/systemd/gogs.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/systemd/gogs.service b/scripts/systemd/gogs.service
new file mode 100644
index 0000000000..1fa0b82aea
--- /dev/null
+++ b/scripts/systemd/gogs.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Gogs (Go Git Service) server
+After=syslog.target
+After=network.target
+#After=mysqld.service
+#After=postgresql.service
+#After=memcached.service
+#After=redis.service
+
+[Service]
+Type=simple
+User=git
+Group=git
+ExecStart=/home/git/gogs/gogs/start.sh
+WorkingDirectory=/home/git/gogs
+
+[Install]
+WantedBy=multi-user.target