splunk / splunk-connect-for-syslog

Splunk Connect for Syslog
Apache License 2.0
148 stars 108 forks source link

Fix for the issue 2475: #2484

Closed guillerg86 closed 4 weeks ago

guillerg86 commented 1 month ago

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

github-actions[bot] commented 1 month ago

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

guillerg86 commented 1 month ago

I have read the CLA Document and I hereby sign the CLA

guillerg86 commented 1 month ago

I have read the Code of Conduct and I hereby accept the Terms