]> source.dussan.org Git - gitea.git/commitdiff
Intial commit for systemd support
authorThomas Fanninger <thomas@fanninger.at>
Tue, 16 Sep 2014 18:10:21 +0000 (20:10 +0200)
committerThomas Fanninger <thomas@fanninger.at>
Tue, 16 Sep 2014 18:10:21 +0000 (20:10 +0200)
scripts/systemd/gogs.service [new file with mode: 0644]

diff --git a/scripts/systemd/gogs.service b/scripts/systemd/gogs.service
new file mode 100644 (file)
index 0000000..1fa0b82
--- /dev/null
@@ -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