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.