Browse Source

systemd unit: set LimitNOFILE to 8192

Nicola Murino 3 năm trước cách đây
mục cha
commit
65948a47f1
2 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 0 1
      README.md
  2. 1 0
      init/sftpgo.service

+ 0 - 1
README.md

@@ -2,7 +2,6 @@
 
 ![CI Status](https://github.com/drakkan/sftpgo/workflows/CI/badge.svg?branch=main&event=push)
 [![Code Coverage](https://codecov.io/gh/drakkan/sftpgo/branch/main/graph/badge.svg)](https://codecov.io/gh/drakkan/sftpgo/branch/main)
-[![Go Report Card](https://goreportcard.com/badge/github.com/drakkan/sftpgo)](https://goreportcard.com/report/github.com/drakkan/sftpgo)
 [![License: AGPL v3](https://img.shields.io/badge/License-AGPLv3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
 [![Docker Pulls](https://img.shields.io/docker/pulls/drakkan/sftpgo)](https://hub.docker.com/r/drakkan/sftpgo)
 [![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)

+ 1 - 0
init/sftpgo.service

@@ -12,6 +12,7 @@ Environment=SFTPGO_LOG_FILE_PATH=
 EnvironmentFile=-/etc/sftpgo/sftpgo.env
 ExecStart=/usr/bin/sftpgo serve
 ExecReload=/bin/kill -s HUP $MAINPID
+LimitNOFILE=8192
 KillMode=mixed
 PrivateTmp=true
 Restart=always