Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-07-2007, 12:36 PM
Active Member
 
Posts: 48
Default 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();
}
Reply With Quote
  #2 (permalink)  
Old 12-17-2007, 11:25 AM
Former Zimbran
 
Posts: 5,606
Default

Feel free to add this to the wiki, and file an enhancement on it.

Usually, I just do
# zmcontrol stop; zmcontrol start;
Reply With Quote
  #3 (permalink)  
Old 12-17-2007, 11:46 AM
Active Member
 
Posts: 48
Default

Quote:
Originally Posted by jholder View Post
Feel free to add this to the wiki, and file an enhancement on it.

Usually, I just do
# zmcontrol stop; zmcontrol start;
True.. it's nearly as easy to do that but a 'restart' is easy to implement. Was there a reason it was not, to prevent certain potential problem(s)?

I'm not a big power wiki user but I can give it a shot!
Reply With Quote
  #4 (permalink)  
Old 12-17-2007, 11:47 AM
Former Zimbran
 
Posts: 5,606
Default

Well, not really. I think the point is that Zimbra has a bunch of services that can can all be restarted independently. For example:
#tomcat restart
#mysql.server restart
etc
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.