jaysen at emtjaysen.net
2006-Nov-04 15:43 UTC
[Dovecot] INIT startup script for Fedora Core 5
<div>Does anyone have an init script for dovecot that will work with Fedora Core 5 so that it will startup automatically on boot? I can't seem to find one so If you have one I would appreciate it if you could send it to me. </div> <div> </div> <div>Thank You</div> <div> </div> <div>Jaysen</div>
jaysen at emtjaysen.net wrote:> Does anyone have an init script for dovecot that will work with Fedora > Core 5 so that it will startup automatically on boot? I can't seem to > find one so If you have one I would appreciate it if you could send it > to me. > > Thank You > > JaysenThis is what I use on my Fedora Core 3 server (should work fine of Core 5, as well): ====#!/bin/sh # description: Dovecot IMAP Server # processname: dovecot # chkconfig: - 54 54 # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network [ -x /usr/local/sbin/dovecot ] || exit 0 PATH=$PATH:/usr/local/sbin case "$1" in start) echo -n "Starting Dovecot Daemon: " daemon dovecot RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dovecot ;; stop) echo -n "Stopping Dovecot Daemon: " killproc dovecot RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dovecot ;; status) status dovecot RETVAL=$? ;; restart) echo -n "Restarting Dovecot: " $0 stop $0 start RETVAL=$? ;; *) echo "Usage: dovecot {start|stop|status|restart}" exit 1 esac exit $RETVAL ==== HTH, Bill
On Sat, 04 Nov 2006 08:43:04 -0700 jaysen at emtjaysen.net wrote:> Does anyone have an init script for dovecot that will work with Fedora Core 5 so that it will startup automatically on boot? I can't seem to find one so If you have one I would appreciate it if you could send it to me.There is a dovecot rpm available from the ATrpms repository, it contains the sysV-style init scripts and will do what you want. -- Brian Morrison bdm at fenrir dot org dot uk GnuPG key ID DE32E5C5 - http://wwwkeys.uk.pgp.net/pgpnet/wwwkeys.html
jaysen at emtjaysen.net escribi?:> Does anyone have an init script for dovecot that will work with Fedora Core 5 so > that it will startup automatically on boot? I can't seem to find one so If you > have one I would appreciate it if you could send it to me.FC5 ships dovecot as part of core, so it has an init script: http://cvs.fedora.redhat.com/viewcvs/*checkout*/rpms/dovecot/FC-5/dovecot.init?rev=HEAD -- Angel Marin http://anmar.eu.org/