Relay - besrelay no ulimit
Log In or Register to download the BES file, and more.

1 Votes

Description


Property Details

ID26606
StatusBeta - Preliminary testing ready for more
TitleRelay - besrelay no ulimit
DomainBESC
SourceInternal
Source Release Date9/20/2018 12:00:00 AM
Keywordsrelay ulimit
Added by on 2/15/2019 10:15:09 AM
Last Modified by on 2/15/2019 10:15:09 AM
Counters 424 Views / 3 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 12 fixlets and 3 analyses   * Results in a true/false
Show indented relevance
exists relay service
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists ("red hat enterprise server 7"; "centos 7") whose (operating system as string as lowercase contains it)
Used in 1 fixlet   * Results in a true/false
Show indented relevance
not exists file "/etc/systemd/system/besrelay.service.d/filelimits.conf"

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
parameter "serviceName"="besrelay"

if {exists process whose (name of it as string as lowercase = (parameter "serviceName") )}

    folder create /etc/systemd/system/{parameter "serviceName"}.service.d
    
    createfile until __FileCreate
    [Service]
    LimitNOFILE=infinity
    __FileCreate
    
    move __createfile /etc/systemd/system/{parameter "serviceName"}.service.d/filelimits.conf
    wait systemctl daemon-reload
    wait systemctl restart {parameter "serviceName"}.service

endif
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
masonje -
You can use the same thing (just change the service name) for webreports, besserver, beswebui