gentoo-ebuilds/net-libs/tox/files/tox-bootstrapd.service
Josiah Mullins 51487f2d17
net-libs/tox: Updated initd and tox-bootstrapd.service
Added some features from the tox main git tree. The
primary change is to increase the maximum number
of files that can be open. This is desired because
the tox dht daemon has around 600 files open; which
is near the default limit of 1024 (on some systems).

Signed-off-by: Josiah Mullins <JoMull01@protonmail.com>
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
2024-07-30 21:01:42 +02:00

19 lines
504 B
Desktop File

[Unit]
Description=Tox DHT Bootstrap Daemon
After=network.target
[Service]
User=tox
Group=tox
#Since the daemon can use around 600 tcp sockets,
#increase the soft limit on open files to 4096
LimitNOFILE=4096
RuntimeDirectory=tox-bootstrapd
RuntimeDirectoryMode=750
PIDFile=/run/tox-bootstrapd/tox-bootstrapd.pid
WorkingDirectory=/var/lib/tox-bootstrapd
ExecStart=/usr/bin/tox-bootstrapd --config /etc/tox-bootstrapd.conf
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target