summaryrefslogtreecommitdiff
path: root/net-libs/tox/files
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/tox/files')
-rw-r--r--net-libs/tox/files/initd2
-rw-r--r--net-libs/tox/files/tox-bootstrapd.service4
2 files changed, 6 insertions, 0 deletions
diff --git a/net-libs/tox/files/initd b/net-libs/tox/files/initd
index 49880897a1a0..b5ef4cd4db41 100644
--- a/net-libs/tox/files/initd
+++ b/net-libs/tox/files/initd
@@ -16,6 +16,8 @@ start() {
checkpath -d -q -o "${TOX_USER}":"${TOX_GROUP}" "${PIDDIR}"
checkpath -d -q -o "${TOX_USER}":"${TOX_GROUP}" "${KEYSDIR}"
+ set rc_ulimts 4096
+
start-stop-daemon --start \
--pidfile "${PIDFILE}" \
--user="${TOX_USER}" --group="${TOX_GROUP}" \
diff --git a/net-libs/tox/files/tox-bootstrapd.service b/net-libs/tox/files/tox-bootstrapd.service
index ae2f238cd60c..aec928c7054e 100644
--- a/net-libs/tox/files/tox-bootstrapd.service
+++ b/net-libs/tox/files/tox-bootstrapd.service
@@ -5,7 +5,11 @@ 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