Results 1 to 4 of 4

Thread: zmcontrol start/stop suggestion

  1. #1
    Join Date
    Nov 2007
    Posts
    48
    Rep Power
    7

    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();
    }

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

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

    Usually, I just do
    # zmcontrol stop; zmcontrol start;

  3. #3
    Join Date
    Nov 2007
    Posts
    48
    Rep Power
    7

    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!

  4. #4
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    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

Similar Threads

  1. Replies: 4
    Last Post: 11-14-2007, 01:19 PM
  2. zmcontrol start/stop vs. zimbra user cron table
    By fisch09 in forum Administrators
    Replies: 1
    Last Post: 09-21-2007, 08:10 AM
  3. 'zmcontrol maintenance' doesn't seem to do anything
    By jdell in forum Administrators
    Replies: 0
    Last Post: 11-17-2006, 03:06 PM
  4. zmcontrol status
    By tbullock in forum Installation
    Replies: 3
    Last Post: 10-19-2005, 02:42 PM
  5. Problem At End of Install and zmcontrol status
    By ilurec in forum Installation
    Replies: 3
    Last Post: 09-30-2005, 08:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •