From 414ae1cb1a4f9159bc0af30d9e106655f900c8ae Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Thu, 3 Jun 2021 08:55:35 +0200 Subject: www-apps/gitea: update service file for newer postgresql Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Pierre-Olivier Mercier Signed-off-by: Sam James --- www-apps/gitea/files/gitea.service-r3 | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 www-apps/gitea/files/gitea.service-r3 (limited to 'www-apps/gitea/files') diff --git a/www-apps/gitea/files/gitea.service-r3 b/www-apps/gitea/files/gitea.service-r3 new file mode 100644 index 000000000000..0867ba637824 --- /dev/null +++ b/www-apps/gitea/files/gitea.service-r3 @@ -0,0 +1,34 @@ +[Unit] +Description=Gitea service +Documentation=https://docs.gitea.io/ + +AssertPathIsDirectory=/var/lib/gitea +AssertPathIsReadWrite=/var/lib/gitea + +After=network.target +Requires=network.target +After=mysqld.service +After=postgresql-9.5.service +After=postgresql-9.6.service +After=postgresql-10.service +After=postgresql-11.service +After=postgresql-12.service +After=postgresql-13.service +After=postgresql-14.service +After=memcached.service +After=redis.service + +[Service] +User=git +Group=git + +Environment="GITEA_WORK_DIR=/var/lib/gitea" "GITEA_CUSTOM=/var/lib/gitea/custom" +WorkingDirectory=/var/lib/gitea +ExecStart=/usr/bin/gitea web --config /etc/gitea/app.ini + +Restart=always +PrivateTmp=true +Nice=5 + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-65-gdbad