2018-09-19 19:58:30 +02:00
|
|
|
From 4ba92ebea6847998ef6c9183062004ba98b6d945 Mon Sep 17 00:00:00 2001
|
2017-03-18 15:33:06 +01:00
|
|
|
From: Martchus <martchus@gmx.net>
|
|
|
|
Date: Sun, 19 Mar 2017 18:04:48 +0100
|
2017-11-23 23:31:18 +01:00
|
|
|
Subject: [PATCH 2/2] Adjust service file for Arch Linux package
|
2017-03-18 15:33:06 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
scripts/systemd/gogs.service | 10 +++++-----
|
|
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/scripts/systemd/gogs.service b/scripts/systemd/gogs.service
|
2018-09-19 19:58:30 +02:00
|
|
|
index 3a89662a8..790a94e80 100644
|
2017-03-18 15:33:06 +01:00
|
|
|
--- 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
|
2018-09-19 19:58:30 +02:00
|
|
|
+Environment=USER=gogs HOME=/var/lib/gogs GOGS_CUSTOM=/var/lib/gogs/custom
|
2017-03-18 15:33:06 +01:00
|
|
|
|
2018-09-19 19:58:30 +02:00
|
|
|
# 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.
|
2017-03-18 15:33:06 +01:00
|
|
|
--
|
2018-09-19 19:58:30 +02:00
|
|
|
2.19.0
|
2017-03-18 15:33:06 +01:00
|
|
|
|