zmcontrol start/stop suggestion I got tried of waiting for the 'STOP' to complete, before running 'START' when simply needing to 'kick' the system down/up after working on our SSL certs.
So.. I made this quick modification to the zmcontrol script.
- added 'restart' as a valid option:
my %COMMANDS = (
"restart" => \&doRestart,
"start" => \&doStartup,
"startup" => \&doStartup,
"stop" => \&doShutdown,
"shutdown" => \&doShutdown,
"maintenance" => \&setMaintenanceMode,
"status" => \&doStatus,
);
- added this tiny little sub
sub doRestart {
doShutdown();
return doStartup();
} |