Skip to content

Commit

Permalink
Config: add LimitNOFILE to service files (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loyalsoldier authored Apr 29, 2021
1 parent 88692d8 commit 8d3ed14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions example/trojan-go.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ NoNewPrivileges=true
ExecStart=/usr/bin/trojan-go -config /etc/trojan-go/config.json
Restart=on-failure
RestartSec=10s
LimitNOFILE=infinity

[Install]
WantedBy=multi-user.target
1 change: 1 addition & 0 deletions example/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ NoNewPrivileges=true
ExecStart=/usr/bin/trojan-go -config /etc/trojan-go/%i.json
Restart=on-failure
RestartSec=10s
LimitNOFILE=infinity

[Install]
WantedBy=multi-user.target

0 comments on commit 8d3ed14

Please sign in to comment.