When a VM or Computer with SC4S shutdown suddently because electrical outage or other problems, SC4S container is not removed, so when you try to start again an error is fired with "Can not create, another container with SC4S name exists!"
Executing this ExecStartPre ensures that if the container exists is deleted. If the container doesn't exist the code || /bin/true makes the script continue.
When a VM or Computer with SC4S shutdown suddently because electrical outage or other problems, SC4S container is not removed, so when you try to start again an error is fired with "Can not create, another container with SC4S name exists!"
Executing this ExecStartPre ensures that if the container exists is deleted. If the container doesn't exist the code || /bin/true makes the script continue.
Issue link: https://github.com/splunk/splunk-connect-for-syslog/issues/2475
@ikheifets-splunk is checking the issue