From 78bd144c1c050444b959ea43c0ef5c63b75ad27e Mon Sep 17 00:00:00 2001 From: Thomas Fanninger Date: Tue, 16 Sep 2014 20:10:21 +0200 Subject: [PATCH] Intial commit for systemd support --- scripts/systemd/gogs.service | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 scripts/systemd/gogs.service diff --git a/scripts/systemd/gogs.service b/scripts/systemd/gogs.service new file mode 100644 index 000000000..1fa0b82ae --- /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