aboutsummaryrefslogtreecommitdiff
path: root/scripts/systemd
diff options
context:
space:
mode:
authorlunnyxiao <xiaolunwen@gmail.com>2014-09-17 12:04:18 +0800
committerlunnyxiao <xiaolunwen@gmail.com>2014-09-17 12:04:18 +0800
commit061a879cea39a1cce56dcb394b912fad50d7b77a (patch)
tree26e8c3d25da1b9d785421a6a02b7564798b2e8c4 /scripts/systemd
parented84adb679f3de70b2bffaead20a87711c38ee3a (diff)
parent9f015b4c73806e65d3ca085b76723dc8cf41eb02 (diff)
Merge branch 'dev' of github.com:gogits/gogs into dev
Conflicts: conf/app.ini
Diffstat (limited to 'scripts/systemd')
-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 00000000..1fa0b82a
--- /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