mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
5530e41742
tox-bootstrapd can use around 600 TCP sockets during TCP server's normal functioning. Many systems default to having a soft limit of 1024 open file descriptors, which we are close to reaching, so it was suggested we bump that limit to a higher number. iphy suggested increasing it to 32768.
21 lines
595 B
Desktop File
21 lines
595 B
Desktop File
[Unit]
|
|
Description=Tox DHT Bootstrap Daemon
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
RuntimeDirectory=tox-bootstrapd
|
|
RuntimeDirectoryMode=750
|
|
PIDFile=/var/run/tox-bootstrapd/tox-bootstrapd.pid
|
|
WorkingDirectory=/var/lib/tox-bootstrapd
|
|
ExecStart=/usr/local/bin/tox-bootstrapd --config /etc/tox-bootstrapd.conf
|
|
User=tox-bootstrapd
|
|
Group=tox-bootstrapd
|
|
# TCP Server needs to be able to have lots of TCP sockets open.
|
|
LimitNOFILE=32768
|
|
# Uncomment to allow binding to ports < 1024, e.g. 443 (HTTPS) for TCP Server
|
|
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|