From e92e6c06c0e5bc2e67c80ab5e1e3c5fc579fec46 Mon Sep 17 00:00:00 2001 From: Miguel Muniz Date: Tue, 23 Jul 2024 13:12:00 -0700 Subject: [PATCH] changes to systemd to test --- install/gitea-install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install/gitea-install.sh b/install/gitea-install.sh index fbabfc64..96800a34 100644 --- a/install/gitea-install.sh +++ b/install/gitea-install.sh @@ -49,7 +49,8 @@ After=network.target # Uncomment the next line if you have repos with lots of files and get a HTTP 500 error because of that # LimitNOFILE=524288:524288 RestartSec=2s -Type=notify +#Type=notify +Type=simple User=gitea Group=gitea #The mount point we added to the container @@ -59,10 +60,10 @@ RuntimeDirectory=gitea ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini Restart=always Environment=USER=gitea HOME=/var/lib/gitea/data GITEA_WORK_DIR=/var/lib/gitea -WatchdogSec=30s +#WatchdogSec=30s #Capabilities to bind to low-numbered ports -CapabilityBoundingSet=CAP_NET_BIND_SERVICE -AmbientCapabilities=CAP_NET_BIND_SERVICE +#CapabilityBoundingSet=CAP_NET_BIND_SERVICE +#AmbientCapabilities=CAP_NET_BIND_SERVICE [Install] WantedBy=multi-user.target