Skip to content

Instantly share code, notes, and snippets.

@Daemonslayer2048
Created November 12, 2020 16:17
Show Gist options
  • Save Daemonslayer2048/4397bed6225d2c5f35e460195150e80e to your computer and use it in GitHub Desktop.
Save Daemonslayer2048/4397bed6225d2c5f35e460195150e80e to your computer and use it in GitHub Desktop.
Restart Salt Minion Without Losing It

Simply running 'systemctl restart salt-minion' using the cmd.run module will cause the service to hang on the restart process.
The below command allows the restart signal to be detached from the service, preventing the hang

sudo salt Minion-Id at.at 'now +5 minutes' 'systemctl restart salt-minion'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment