chiark / gitweb /
units: increase LimitNOFILE a bit
authorLennart Poettering <lennart@poettering.net>
Tue, 11 Oct 2011 02:43:29 +0000 (04:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Oct 2011 02:43:29 +0000 (04:43 +0200)
since we need one fd per session (for logind) and one fd per service
(for stdout-syslog-bridge) increase the default rlimit a bit.

TODO
units/systemd-logind.service.in
units/systemd-stdout-syslog-bridge.service.in

diff --git a/TODO b/TODO
index 779d1a30ddbc5ef0f693efb0e6fcef66df973d1d..99e026e3c1d0f0493d1b3aeaf31f3d73343bdf78 100644 (file)
--- a/TODO
+++ b/TODO
@@ -26,8 +26,6 @@ Features:
 
 * default to actual 32bit PIDs, via /proc/sys/kernel/pid_max
 
-* increase RLIMIT_NOFILE for logind, logger by default
-
 * add an option to make mounts private/shareable and so on, enable this for root by default
 
 * internal restart counter for units (focus on auto-respawn)
index 82a2c6a0ca21e70986bd2660261c19fa3f73f8ec..4241b8b32003ca7e4508d1907ea48b913ed4e3a9 100644 (file)
@@ -16,3 +16,7 @@ Type=dbus
 BusName=org.freedesktop.login1
 CapabilityBoundingSet=CAP_AUDIT_CONTROL CAP_CHOWN CAP_KILL CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_FOWNER
 StandardOutput=syslog
+
+# Increase the default a bit in order to allow many simultaneous
+# logins since we keep one fd open per session.
+LimitNOFILE=16384
index 23a5137068f6ce6633fa54ddbd8925e1ac6ad7f3..4626145476df8b6e86ebcef1473ca983da4120f8 100644 (file)
@@ -18,3 +18,7 @@ ExecStart=@rootlibexecdir@/systemd-stdout-syslog-bridge
 NotifyAccess=all
 StandardOutput=null
 CapabilityBoundingSet=CAP_SYS_ADMIN CAP_SETUID CAP_SETGID
+
+# Increase the default a bit in order to allow many simultaneous
+# services being run since we keep one fd open per service.
+LimitNOFILE=16384