RE: starting cyrus at boot?
Thankyou kind sir. Works great! regards, Jeff > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Darin > Perusich > Sent: Friday, March 08, 2002 5:52 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: starting cyrus at boot? > > > here's a script i use for starting/stopping/restart cyrus on my redhat > server. > > copy and paste this into a file in /etc/init.d or /etc/rc.d/init.d > depending on you system, call the file cyrus or whatever makes you > happy. > > chown root.root /etc/init.d/cyrus > chmod u+x /etc/init.d/cyrus > cd /etc/rc3.d > ln -s ../init.d/cyrus S99cyrus > ln -s ../init.d/cyrus K99cyrus > > you might need to modify some of the path names if you've installed > cyrus outside of the default locations. if you where running this on a > solaris 7 or 8 system you could use /usr/bin/pkill instead of > /usr/bin/killall and you'd want to place the rc script in /etc/rc2.d > instead of rc3.d. > > enjoy > > --BEGIN COPY-- > #!/bin/sh > # > # Start/Shut for cyrus master server process > # > > case "$1" in > 'start') > if [ -f /etc/cyrus.conf ] ; then > echo "Starting Cyrus Master Process" > /usr/cyrus/bin/master 1> /dev/console 2>&1 & > fi > ;; > > 'stop') > echo "Shutting down Cyrus Master Process" > /usr/bin/killall master 1>/dev/console 2>&1 > ;; > > 'restart') > echo "Restarting Cyrus Master Process" > /usr/bin/killall -HUP master 1>/dev/console 2>&1 > ;; > > *) > echo "Usage: $0 { start | restart | stop }" > ;; > esac > exit 0 > > --END COPY-- > > Jeff Bert wrote: > > > > I know this is a newbie question but with all I had to do to get cyrus > > installed my brain hurts... what's a good way to get cyrus > started at boot? > > > > thanks, > > > > Jeff > > -- > Darin Perusich > Unix Systems Administrator > Cognigen Corp. > [EMAIL PROTECTED] >
Re: starting cyrus at boot?
Why not add a chkconfig line to the script and let 'chkconfig --add imapd' after copying the script to /etc/rc.d/init.d/imapd. You can then use chkconfig to do all of the messy stuff with links and can use chkconfig to turn off/on the script at will... Example of chkconfig line: # chkconfig: 2345 55 25 # description: Cyrus IMAPD the chkconfig line is: runlevel(s) start-priority stop-priority So, adding the above would create links in /etc/rc.d/rc[0-6].d to start server in levels 2,3,4,5 and stop in levels 0,1,6. On Fri, 8 Mar 2002, Darin Perusich wrote: > Date: Fri, 08 Mar 2002 13:52:18 + > From: Darin Perusich <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: starting cyrus at boot? > > here's a script i use for starting/stopping/restart cyrus on my redhat > server. > > copy and paste this into a file in /etc/init.d or /etc/rc.d/init.d > depending on you system, call the file cyrus or whatever makes you > happy. > > chown root.root /etc/init.d/cyrus > chmod u+x /etc/init.d/cyrus > cd /etc/rc3.d > ln -s ../init.d/cyrus S99cyrus > ln -s ../init.d/cyrus K99cyrus > > you might need to modify some of the path names if you've installed > cyrus outside of the default locations. if you where running this on a > solaris 7 or 8 system you could use /usr/bin/pkill instead of > /usr/bin/killall and you'd want to place the rc script in /etc/rc2.d > instead of rc3.d. > > enjoy > > --BEGIN COPY-- > #!/bin/sh > # > # Start/Shut for cyrus master server process > # > > case "$1" in > 'start') > if [ -f /etc/cyrus.conf ] ; then > echo "Starting Cyrus Master Process" > /usr/cyrus/bin/master 1> /dev/console 2>&1 & > fi > ;; > > 'stop') > echo "Shutting down Cyrus Master Process" > /usr/bin/killall master 1>/dev/console 2>&1 > ;; > > 'restart') > echo "Restarting Cyrus Master Process" > /usr/bin/killall -HUP master 1>/dev/console 2>&1 > ;; > > *) > echo "Usage: $0 { start | restart | stop }" > ;; > esac > exit 0 > > --END COPY-- > > Jeff Bert wrote: > > > > I know this is a newbie question but with all I had to do to get cyrus > > installed my brain hurts... what's a good way to get cyrus started at boot? > > > > thanks, > > > > Jeff > >
Re: starting cyrus at boot?
On Fri, Mar 08, 2002 at 01:52:18PM +, Darin Perusich wrote: > here's a script i use for starting/stopping/restart cyrus on my redhat > server. While we're talking about starting cyrus on Red Hat boxes I thought now would be a good time to mention the oddity I found when using Cyrus 2.0.16, Postfix, and Red Hat 6.2 + errata. This behavior is not a problem in Red Hat 7.1 or 7.2. (I was sane enough to never run Red Hat 7.0 on a server.) Because both the postfix and cyrus servers use a "master" process the Red Hat 6.2 init scripts can get somewhat confused when issuing stop and restart. For example /sbin/service cyrus restart has a tendency to stop the postfix 'master' process and the cyrus 'master' process. The work around for my was to symlink cymaster -> master in the cyrus directory then alter the /etc/rc.d/cyrus startup script start and stop cymaster instead of master. Hope it helps someone. -- Regards, Scott Russell ([EMAIL PROTECTED]) Linux Technology Center, System Admin, RHCE. T/L 441-9289 / External 919-543-9289 http://bzimage.raleigh.ibm.com/webcam
Re: starting cyrus at boot?
here's a script i use for starting/stopping/restart cyrus on my redhat server. copy and paste this into a file in /etc/init.d or /etc/rc.d/init.d depending on you system, call the file cyrus or whatever makes you happy. chown root.root /etc/init.d/cyrus chmod u+x /etc/init.d/cyrus cd /etc/rc3.d ln -s ../init.d/cyrus S99cyrus ln -s ../init.d/cyrus K99cyrus you might need to modify some of the path names if you've installed cyrus outside of the default locations. if you where running this on a solaris 7 or 8 system you could use /usr/bin/pkill instead of /usr/bin/killall and you'd want to place the rc script in /etc/rc2.d instead of rc3.d. enjoy --BEGIN COPY-- #!/bin/sh # # Start/Shut for cyrus master server process # case "$1" in 'start') if [ -f /etc/cyrus.conf ] ; then echo "Starting Cyrus Master Process" /usr/cyrus/bin/master 1> /dev/console 2>&1 & fi ;; 'stop') echo "Shutting down Cyrus Master Process" /usr/bin/killall master 1>/dev/console 2>&1 ;; 'restart') echo "Restarting Cyrus Master Process" /usr/bin/killall -HUP master 1>/dev/console 2>&1 ;; *) echo "Usage: $0 { start | restart | stop }" ;; esac exit 0 --END COPY-- Jeff Bert wrote: > > I know this is a newbie question but with all I had to do to get cyrus > installed my brain hurts... what's a good way to get cyrus started at boot? > > thanks, > > Jeff -- Darin Perusich Unix Systems Administrator Cognigen Corp. [EMAIL PROTECTED]
Re: starting cyrus at boot?
If you installed a rpm , it should be /etc/init.d/cyrus restart or /etc/rc.d/init.d/cyrus restart justin > never used mandrake but you should be able to just add > '/usr/cyrus.bin.master &' to your rc.local (or equivalent) file. > > -- > =G= > > -=* I'm sorry if doing things correctly offends you. *=- > > Jeff Bert wrote: >> Tried that and didn't find one for cyrus-imapd >> >> >>>-Original Message- >>>From: [EMAIL PROTECTED] >>>[mailto:[EMAIL PROTECTED]]On Behalf Of Alain Tesio >>>Sent: Friday, March 08, 2002 1:34 AM >>>To: [EMAIL PROTECTED] >>>Cc: [EMAIL PROTECTED] >>>Subject: Re: starting cyrus at boot? >>> >>> >>>On Fri, 8 Mar 2002 01:03:01 -0800 >>>"Jeff Bert" <[EMAIL PROTECTED]> wrote: >>> >>> >>>>Sure, I have: >>>> >>>>Linux Mandrake 8.1, kernel 2.4.8 >>>> >>>>I installed cyrus-imapd-2.0.16 from the tarball >>>>that I downloaded from the cyrus site. >>>> >>>>Jeff >>>> >>>Go to rpmfind.net, download a rpm package for mandrake >>>and install it, it should be easier. >>> >>>Alain
Re: starting cyrus at boot?
never used mandrake but you should be able to just add '/usr/cyrus.bin.master &' to your rc.local (or equivalent) file. -- =G= -=* I'm sorry if doing things correctly offends you. *=- Jeff Bert wrote: > Tried that and didn't find one for cyrus-imapd > > >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED]]On Behalf Of Alain Tesio >>Sent: Friday, March 08, 2002 1:34 AM >>To: [EMAIL PROTECTED] >>Cc: [EMAIL PROTECTED] >>Subject: Re: starting cyrus at boot? >> >> >>On Fri, 8 Mar 2002 01:03:01 -0800 >>"Jeff Bert" <[EMAIL PROTECTED]> wrote: >> >> >>>Sure, I have: >>> >>>Linux Mandrake 8.1, kernel 2.4.8 >>> >>>I installed cyrus-imapd-2.0.16 from the tarball >>>that I downloaded from the cyrus site. >>> >>>Jeff >>> >>Go to rpmfind.net, download a rpm package for mandrake >>and install it, it should be easier. >> >>Alain >> >>
RE: starting cyrus at boot?
Tried that and didn't find one for cyrus-imapd > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Alain Tesio > Sent: Friday, March 08, 2002 1:34 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: starting cyrus at boot? > > > On Fri, 8 Mar 2002 01:03:01 -0800 > "Jeff Bert" <[EMAIL PROTECTED]> wrote: > > > Sure, I have: > > > > Linux Mandrake 8.1, kernel 2.4.8 > > > > I installed cyrus-imapd-2.0.16 from the tarball > > that I downloaded from the cyrus site. > > > > Jeff > > Go to rpmfind.net, download a rpm package for mandrake > and install it, it should be easier. > > Alain >
Re: starting cyrus at boot?
On Fri, 8 Mar 2002 01:03:01 -0800 "Jeff Bert" <[EMAIL PROTECTED]> wrote: > Sure, I have: > > Linux Mandrake 8.1, kernel 2.4.8 > > I installed cyrus-imapd-2.0.16 from the tarball > that I downloaded from the cyrus site. > > Jeff Go to rpmfind.net, download a rpm package for mandrake and install it, it should be easier. Alain
RE: starting cyrus at boot?
Sure, I have: Linux Mandrake 8.1, kernel 2.4.8 I installed cyrus-imapd-2.0.16 from the tarball that I downloaded from the cyrus site. Jeff > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 08, 2002 12:56 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: starting cyrus at boot? > > > Hi, > > Please give us some more info, > > did you > - install from source? > - on what os? > - what cyrus version? > > Tarjei > > Jeff Bert wrote: > > >I know this is a newbie question but with all I had to do to get cyrus > >installed my brain hurts... what's a good way to get cyrus > started at boot? > > > >thanks, > > > >Jeff > > > > >
Re: starting cyrus at boot?
Hi, Please give us some more info, did you - install from source? - on what os? - what cyrus version? Tarjei Jeff Bert wrote: >I know this is a newbie question but with all I had to do to get cyrus >installed my brain hurts... what's a good way to get cyrus started at boot? > >thanks, > >Jeff >
Re: starting cyrus at boot?
Jeff Bert schrieb: > > I know this is a newbie question but with all I had to do to get cyrus > installed my brain hurts... what's a good way to get cyrus started at boot? This depends on the OS and cyrus version you are using. If you use RPM on Linux or a port on *BSD, initscripts should be in the package. -Simon > > thanks, > > Jeff