[Bug 846178] New: Support setting per service ulimits
https://bugzilla.novell.com/show_bug.cgi?id=846178 https://bugzilla.novell.com/show_bug.cgi?id=846178#c0 Summary: Support setting per service ulimits Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: Other OS/Version: Other Status: ASSIGNED Severity: Normal Priority: P5 - None Component: Network AssignedTo: mrueckert@suse.com ReportedBy: mrueckert@suse.com QAContact: qa-bugs@suse.de CC: werner@suse.com, p.heinlein@heinlein-support.de, fcrozat@suse.com Found By: --- Blocker: --- This is originally a request from Peer Heinlein to allow setting maxfilehandles per service. proposed solution: /etc/systemd/system/${servicename}.service.d/limits.conf the fileformat will be from man 5 systemd.conf. For setting the maxfilehandles. the file would look like. [[[ [Service] LimitNOFILE=8192 ]]] Todos: 1. systemd 1.1 on 13.1 or later: nothing. systemd will automerge all files in /etc/systemd/system/${servicename}.service.d/ when handling ${servicename}.service. Support for this was introduced in v198. 1.2 12.3 and older. The user needs to create a file /etc/systemd/system/${servicename}.service with 2 lines: include /usr/lib/systemd/system/${servicename}.service include /etc/systemd/system/${servicename}.service.d/limits.conf If the unit author decides he wants to support this out of the box, they can ship the limits.conf and include it in the /usr/lib/systemd/system/${servicename}.service. 2. sysvinit Ideally if you introduce this way to support per service ulimits, it should also work with init scripts. For this we propose a patch to rc.status which converts the systemd syntax into ulimit calls. It will also handle translations like infinity -> unlimited. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=846178 https://bugzilla.novell.com/show_bug.cgi?id=846178#c1 --- Comment #1 from Marcus Rückert <mrueckert@suse.com> 2013-10-16 10:27:33 UTC --- affected packages: dovecot for the original request. aaa_base for rc.status. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=846178 https://bugzilla.novell.com/show_bug.cgi?id=846178#c2 --- Comment #2 from Marcus Rückert <mrueckert@suse.com> 2013-10-16 10:30:11 UTC --- It should be noted ... as dovecot is using the systemd service file on 12.2 to 13.1 by default, the systemd based solution, as described above, would work out of the box already. The sysvinit patch + having dovecot ship that limits.conf and include it by default need maintenance updates. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=846178 https://bugzilla.novell.com/show_bug.cgi?id=846178#c3 --- Comment #3 from Marcus Rückert <mrueckert@suse.com> 2013-10-16 11:51:36 UTC --- while we are at it. the same can use used for setting umask and environment variables and such: see man systemd.exec for more. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com