Bug 1035228

Summary: After update to systemd, parameters in /etc/sysconfig/conman are ignored
Product: Red Hat Enterprise Linux 7 Reporter: Miroslav Hradílek <mhradile>
Component: conmanAssignee: Denys Vlasenko <dvlasenk>
Status: CLOSED ERRATA QA Contact: Miroslav Hradílek <mhradile>
Severity: medium Docs Contact: Bara Ancincova <bancinco>
Priority: medium    
Version: 7.0CC: dvlasenk, lmiksik, tgummels
Target Milestone: rc   
Target Release: 7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Release Note
Doc Text:
The deprecated /etc/sysconfig/conman file has been removed Before introducing the *systemd* manager, various limits for services could be configured in the */etc/sysconfig/conman* file. After migrating to *systemd*, */etc/sysconfig/conman* is no longer used and therefore it was removed. To set limits and other daemon parameters, such as LimitCPU=, LimitDATA=, or LimitCORE=, edit the *conman.service* file. For more information, see the systemd.exec(5) manual page. In addition, a new variable LimitNOFILE=10000 has been added to the *systemd.service* file. This variable is commented out by default. Note that after making any changes to the *systemd* configuration, the "systemctl daemon-reload" command must be executed for changes to take effect.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 12:27:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1154125    

Description Miroslav Hradílek 2013-11-27 10:44:24 UTC
Description of problem:
There was a request in bug738967 to support setting open files limit via NOFILE= entry in /etc/sysconfig/conman. We still ship the /etc/sysconfig/conman with this entry defined but most of the functionality of the original /etc/rc.d/init.d/conman initscript was lost when migrated on systemd in rhel7.

Version-Release number of selected component (if applicable):
conman-0.2.7-5.el7.x86_64

How reproducible:
100%

Comment 2 RHEL Program Management 2014-03-22 06:27:25 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 5 Denys Vlasenko 2015-04-08 12:55:11 UTC
In systemd world, various limits for services can be controlled by
LimitCPU=, LimitFSIZE=, LimitDATA=, LimitSTACK=, LimitCORE=,
LimitRSS=, LimitNOFILE=, LimitAS=, LimitNPROC=, LimitMEMLOCK=,
LimitLOCKS=, LimitSIGPENDING=, LimitMSGQUEUE=, LimitNICE=,
LimitRTPRIO=, LimitRTTIME=
(see "man systemd.exec").

I propose to make it somewhat easier to discover by users by modifying 
conman.service file like this:

 [Unit]
 Description=ConMan Console Management Daemon
 After=network.target

 [Service]
 Type=forking
+# For installations with large number of users, raise the limit
+# of open file descriptors:
+#LimitNOFILE=10000
 ExecStart=/usr/sbin/conmand -c /etc/conman.conf

 [Install]
 WantedBy=multi-user.target

Comment 8 Denys Vlasenko 2015-07-01 20:42:26 UTC
New build:

https://brewweb.devel.redhat.com/taskinfo?taskID=9451441

Comment 12 errata-xmlrpc 2015-11-19 12:27:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2397.html