From f2bd0904bd1a247f0e640aa79c0b35a7ed129247 Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 26 May 2016 16:56:47 +0800 Subject: [PATCH] add gogo.service --- gogs/gogs.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gogs/gogs.service diff --git a/gogs/gogs.service b/gogs/gogs.service new file mode 100644 index 0000000..6c7c330 --- /dev/null +++ b/gogs/gogs.service @@ -0,0 +1,15 @@ +[Unit] +Description=Gogs (Go Git Service) +After=network.target + +[Service] +Type=simple +User=git +Group=git +WorkingDirectory=/home/git/gogs +ExecStart=/home/git/gogs/gogs web +Restart=always +Environment=USER=git HOME=/home/git + +[Install] +WantedBy=multi-user.target