Adding key-value pairs to SystemDAttrList attribute
Before modifying the SystemDAttrList attribute, enable the UseSystemD attribute. SystemDAttrList is a key-value data pair attribute where the system-specific attributes and values can be set. These key-value pairs set the OS and application-specific environment.
To add key-value pairs to or to modify the SystemDAttrList attribute
-
Add a key-value pair in the SystemDAttrList attribute.
hares -modify oracle SystemDAttrList LimitNOFILE 2048
Where, LimitNOFILE is the key and 2048 is the value for that key.
-
Modify an existing attribute.
hares -modify oracle SystemDAttrList -update LimitNOFILE 1024
After you update the
SystemDAttrList attribute, the vcs-custom.conf file reflects the added key-value pairs.
An example of sample systemd attribute-value setting.
Systemd attribute = Value
LimitLOCKS = infinity
LimitMEMLOCK = infinity
LimitCORE = infinity
LimitNOFILE = 1024
EnvironmentFile => /tmp/myenv.file
For more information, refer to the URL on setting limits.