-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Retry start of salt-minion under systemd #19375
Copy link
Copy link
Closed
Labels
P2Priority 2Priority 2PlatformRelates to OS, containers, platform-based utilities like FS, system based appsRelates to OS, containers, platform-based utilities like FS, system based appsbugbroken, incorrect, or confusing behaviorbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around3rd level, incorrect or bad functionality, confusing and lacks a work aroundstale
Milestone
Metadata
Metadata
Assignees
Labels
P2Priority 2Priority 2PlatformRelates to OS, containers, platform-based utilities like FS, system based appsRelates to OS, containers, platform-based utilities like FS, system based appsbugbroken, incorrect, or confusing behaviorbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around3rd level, incorrect or bad functionality, confusing and lacks a work aroundstale
I have noticed that salt-minion sometimes fails to start on a server (especially an LXC container or VM where things may be a little slow during startup) when using systemd. If I merely wait 30 seconds and run systemctl start salt-minion, things work fine.
Can you add something to the systemd service file (/lib/systemd/system/salt-minion.service) so that the service attempts to restart five times, separated by 15 seconds each time? I think that would make salt-minion more robust during boot.