Minion Restart - ZD-329
One is restarting the minion automatically, which should probably be the job of the init system. It mostly depends on whether the minion completely dies as a result of an error, or freezes. Either way, if the minion is dead, it's hard for it to restart itself. But we can probably implement this in the init system.
One is restarting the minion automatically, which should probably be the job of the init system. It mostly depends on whether the minion completely dies as a result of an error, or freezes. Either way, if the minion is dead, it's hard for it to restart itself. But we can probably implement this in the init system.
ZD-329
Committed to customer for Boron release
Do we know what OS this is on? We need to make sure we're controlling packaging before we commit to what amounts to a packaging fix.
We control the init scripts for the most common distros in our own repo, so this isn't super dependent on packaging.
Distro still needed, though.
An inquiry is in process. I will report.
OS' used by the given user -- RHEL – 5/6 and future 7
Discussed with basepi again on 9/21, we are committed for Boron
I'm sorry, but I have no idea what is going on here.
OK, @basepi caught me up on this.
Doing this in the initscript is an awful idea. Initscripts have to exit, and the only way to make the script keep the process running is for the initscript to never exit. Which is not how init systems are supposed to work.
They'd be better off starting the master or minion using a watchdog service like monit.
http://www.tecmint.com/how-to-install-and-setup-monit-linux-process-and-services-monitoring-program/
I can investigate example monit configurations that will run the master/minion for us. Doing it through monit would actually bypass the initscript altogether and monit would keep the service running. To stop the service, you'd bring it down using monit rather than the normal means.
@basepi and I were talking and systemd (the init system for RHEL7, Debian 8, and the upcoming Ubuntu 16.04 LTS) does have a mechanism to automatically restart a service.
We can even make this configurable using an EnvironmentFile param to let the user provide the value.
This would be pretty easy to do, and we should do it.
Environment file support added to the RHEL7 spec file in https://github.com/saltstack/salt-pack/pull/12.