aboutsummarylogtreecommitdiffstats
path: root/0002-Adjust-service-file-for-Arch-Linux-package.patch
blob: 70428d8a66ed4acda039a42642603dcc4734e504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 9fdb1880402d6c1712eb2fe6624a59279be01add Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sun, 19 Mar 2017 18:04:48 +0100
Subject: [PATCH 2/2] Adjust service file for Arch Linux package

---
 scripts/systemd/gogs.service | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/scripts/systemd/gogs.service b/scripts/systemd/gogs.service
index 3a89662a8..aeb7bbbc3 100644
--- a/scripts/systemd/gogs.service
+++ b/scripts/systemd/gogs.service
@@ -12,12 +12,12 @@ After=mariadb.service mysqld.service postgresql.service memcached.service redis.
 #LimitMEMLOCK=infinity
 #LimitNOFILE=65535
 Type=simple
-User=git
-Group=git
-WorkingDirectory=/home/git/gogs
-ExecStart=/home/git/gogs/gogs web
+User=gogs
+Group=gogs
+WorkingDirectory=/var/lib/gogs
+ExecStart=/usr/bin/gogs web --config /etc/gogs/app.ini
 Restart=always
-Environment=USER=git HOME=/home/git
+Environment=USER=gogs HOME=/var/lib/gogs
 
 # Some distributions may not support these hardening directives. If you cannot start the service due
 # to an unknown option, comment out the ones not supported by your version of systemd.
-- 
2.28.0