Application unable to start through unit file due to LimitSTACK value.
Issue
- Application starts manually through script from terminal but does not start with limits added through extended unit file which has limits set as follows :
# vi /etc/systemd/system/ManageBootServices.d/limit.conf
[Service]
LimitNOFILE=65536
LimitSTACK=32768
LimitNPROC=16384
- Application able to load limits required to start through limits.conf defined system wide, but as systemd does not refer to limits.conf file, we need to specify systemd limits using extended unit file.
- Service ManageBootServices does not start even if limits are loaded in and confirmed using main PID of the service. For details refer How to set limits (ulimit) for services run by systemd
Environment
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.