Results 1 to 5 of 5

Thread: No startup script on fresh 3.1.1 install CentOS4

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    15
    Rep Power
    9

    Default No startup script on fresh 3.1.1 install CentOS4

    I seem to remember on previous install of Zimbra there was a sysv startup script where I could use chkconfig to have it set to startup automatically and could control all the zimbra services with service zimbra {start|stop}. After my 3.1.1 install on CentOS 4 everything seems to be working well. But I can't locate the startup script or it's name has been changed...

    Can anyone point me in the right direction? I searched the forums and found a similar issue. But it didn't appear to be related to this system startup script. But rather the internal zimbra ones.

  2. #2
    Join Date
    Apr 2006
    Posts
    119
    Rep Power
    9

    Thumbs up

    Just cut and paste this to a file called zimbra in /etc/rc.d/init.d

    Make sure you set it to the proper owner and permissions .. This straight from a CentOS 4.3 box

    #!/bin/bash
    #
    # ***** BEGIN LICENSE BLOCK *****
    # Version: MPL 1.1
    #
    # The contents of this file are subject to the Mozilla Public License
    # Version 1.1 ("License"); you may not use this file except in
    # compliance with the License. You may obtain a copy of the License at
    # http://www.zimbra.com/license
    #
    # Software distributed under the License is distributed on an "AS IS"
    # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
    # the License for the specific language governing rights and limitations
    # under the License.
    #
    # The Original Code is: Zimbra Collaboration Suite Server.
    #
    # The Initial Developer of the Original Code is Zimbra, Inc.
    # Portions created by Zimbra are Copyright (C) 2005 Zimbra, Inc.
    # All Rights Reserved.
    #
    # Contributor(s):
    #
    # ***** END LICENSE BLOCK *****
    #
    #
    # Init file for zimbra mail
    #
    # chkconfig: 345 99 01
    # description: Zimbra mail service
    #


    command()
    {
    su - zimbra -c "zmcontrol $1 >/opt/zimbra/log/startup.log 2>&1"
    }

    case "$1" in
    restart)
    command shutdown
    command startup
    RETVAL=$?
    ;;
    start)
    command startup
    RETVAL=$?
    ;;
    stop)
    command shutdown
    RETVAL=$?
    ;;
    reload|status)
    command $1
    RETVAL=$?
    ;;
    *)
    echo $"Usage: $0 {start|stop|restart|reload|status}"
    RETVAL=1
    esac
    exit $RETVAL

  3. #3
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Quote Originally Posted by eger
    I seem to remember on previous install of Zimbra there was a sysv startup script where I could use chkconfig to have it set to startup automatically and could control all the zimbra services with service zimbra {start|stop}. After my 3.1.1 install on CentOS 4 everything seems to be working well. But I can't locate the startup script or it's name has been changed...

    Can anyone point me in the right direction? I searched the forums and found a similar issue. But it didn't appear to be related to this system startup script. But rather the internal zimbra ones.
    Is this an issue for RHEL users as well, or just CentOS users?

    I know there were some issues with startup scripts, but those should be fixed in the 3.1.1 update.

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by eger
    I seem to remember on previous install of Zimbra there was a sysv startup script where I could use chkconfig to have it set to startup automatically and could control all the zimbra services with service zimbra {start|stop}. After my 3.1.1 install on CentOS 4 everything seems to be working well. But I can't locate the startup script or it's name has been changed...

    Can anyone point me in the right direction? I searched the forums and found a similar issue. But it didn't appear to be related to this system startup script. But rather the internal zimbra ones.
    It is (was?) a bug, the script is called zimbra and this should help.
    Last edited by phoenix; 06-03-2006 at 12:55 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    Join Date
    Dec 2005
    Posts
    15
    Rep Power
    9

    Default

    Thanks guys. I did find the startup script in the /opt/zimbra/libexec dir and installed it.

    Just so i'm not leaving anyone in the dark what I did was:

    Code:
    # cp /opt/zimbra/libexec/zimbra /etc/init.d/
    # chkconfig --add zimbra
    # chconfig --levels 2345 zimbra on
    Not sure why this script wasn't installed with the 3.1.1 installer. Maybe just fluke?

Similar Threads

  1. fresh install (both OS and Zimbra) but zimbra-spell fails
    By xtremetoonz in forum Installation
    Replies: 14
    Last Post: 09-09-2007, 01:34 AM
  2. INSTALLATION PROBLEM ON Centos 4.3 x_86-64Bit.
    By jawad@cogilent.com in forum Installation
    Replies: 11
    Last Post: 07-09-2007, 09:09 AM
  3. Ubuntu chroot install script (i386 and amd64)
    By ironstorm in forum Installation
    Replies: 1
    Last Post: 02-19-2007, 11:46 PM
  4. Missing Startup Script (cannot determine services)
    By bhickey in forum Installation
    Replies: 12
    Last Post: 05-12-2006, 11:48 PM
  5. OS X Server 10.4.3 install issues
    By jono in forum Installation
    Replies: 10
    Last Post: 11-22-2005, 09:43 PM

Posting Permissions

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