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

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 06-02-2006, 03:31 PM
Intermediate Member
 
Posts: 15
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.
Reply With Quote
  #2 (permalink)  
Old 06-02-2006, 08:12 PM
Special Member
 
Posts: 115
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
Reply With Quote
  #3 (permalink)  
Old 06-02-2006, 11:44 PM
Former Zimbran
 
Posts: 5,606
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.
Reply With Quote
  #4 (permalink)  
Old 06-03-2006, 12:29 AM
Zimbra Consultant & Moderator
 
Posts: 19,655
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.
__________________
Regards


Bill

Last edited by phoenix; 06-03-2006 at 12:55 AM..
Reply With Quote
  #5 (permalink)  
Old 06-06-2006, 12:57 PM
Intermediate Member
 
Posts: 15
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?
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.