salt icon indicating copy to clipboard operation
salt copied to clipboard

It's impossible to restart salt-minion from the master on MacOS minions

Open V3XATI0N opened this issue 8 years ago • 3 comments

Description of Issue/Question

A command like salt MINION service.restart salt-minion works fine on Linux, Windows, and even Solaris. But on MacOS, it just kills the service. There's no apparent workaround either, because any process (including a local script that would start the service) started by the minion dies with the main process when it restarts, killing any would-be restart commands anywhere.

Also, I can't use at because every attempt for any command in the at module just results in a dump and a list index out of range error from the minion.

V3XATI0N avatar Nov 07 '18 21:11 V3XATI0N

Looks like service.restart on macOS does a stop/start. Which is an issue because when it the stops the service, it kills the process thats running the command so its unable to start it again also the service on macOS is com.saltstack.salt.minion not salt-minion . Looks like we should be able to change this to run launchctl kickstart -k system/com.saltstack.salt.minion and we should be good to go.

weswhet avatar Nov 07 '18 21:11 weswhet

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Jan 09 '20 14:01 stale[bot]

bump.

Seems like the fix for this is already known (to the point that people are doing it themselves.

(edit: additionally, given more recent changes to the .github/stale.yaml it seems this won't go stale again)

thisguycodes avatar Mar 17 '20 17:03 thisguycodes