[SLE] Anyone have a rc-script for Cyrus IMAPd?
![](https://seccdn.libravatar.org/avatar/3c0bb87bcc48baf3d2f1689649d58228.jpg?s=120&d=mm&r=g)
I've been trying to make a rc-script for Cyrus IMAPd 2.0.7 (I call the script "/sbin/init.d/cyrus"). I started with the /sbin/init.d/skeleton script just to have the framework for the script, but I can't get it to work. I have tried some debugging of the script, but can not get it to work (I am absolutely no expert at writing such scripts), so I was hoping that someone else might have a working script they would like to share. ;-) I am running SuSE Linux 6.4 (i386) and Cyrus IMAPd 2.0.7 (the binaries are installed in /usr/cyrus/bin) -- Eivind Olsen -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
![](https://seccdn.libravatar.org/avatar/5038c2b1ff9e086815e087079b0cf963.jpg?s=120&d=mm&r=g)
Hi, I don't see the reason why u want to run it from rc scripts. Just let inetd take care of it as the docs tell u. Nadeem Eivind Olsen wrote:
I've been trying to make a rc-script for Cyrus IMAPd 2.0.7 (I call the script "/sbin/init.d/cyrus"). I started with the /sbin/init.d/skeleton script just to have the framework for the script, but I can't get it to work.
I have tried some debugging of the script, but can not get it to work (I am absolutely no expert at writing such scripts), so I was hoping that someone else might have a working script they would like to share. ;-)
I am running SuSE Linux 6.4 (i386) and Cyrus IMAPd 2.0.7 (the binaries are installed in /usr/cyrus/bin)
-- Eivind Olsen
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
![](https://seccdn.libravatar.org/avatar/d0cbf734c0a14251bcd545d67f665413.jpg?s=120&d=mm&r=g)
The best way I have found is as follows. All scripts at startup are started with /etc/rc.d/rc[1-6].d where 1 to 6 is the runlevel. S routines are Startup K are shutdown. or Kill. Thus if you place say S90myrclocal as a link to your own scrip then it will run. The link is the trick DO NOT PLACE you SxxRoutine before others unless you know what you are doing. Linux death can be painful. FOR EXAMPLE. Assume you shell startup scripts are contained in rc.local Create a file called rc.local (chmod 755 rc.local) then go down to rc3.d and create a link to rc.local at say S90. eg ln -s ../rc.local ./S90rc.local Repeat in ../rc2.d. You can then put what ever commands YOU like in rc.local and they will be executed after everything else has started normally. This is very useful for starting you own services and starting other interfaces etc. For example /bin/echo "Starting up the ipchain setup..." /etc/rc.d/rc.local.ipchain_setup It is extremely comnvenient to do it this way because you can leave the standard configuration completely and startup and shutdown what ever you like in what ever order you like. Regards, Bruce PS Please reply through suse-linux-e@suse.com because we treat all emails from usa.net as Spam and trash the lot. If you wish to send a private note, tell me through suse and I will arrange for your email address to come through unscathed!!
Hi,
I don't see the reason why u want to run it from rc scripts. Just let inetd take care of it as the docs tell u.
Nadeem
Eivind Olsen wrote:
I've been trying to make a rc-script for Cyrus IMAPd 2.0.7 (I call the script "/sbin/init.d/cyrus"). I started with the /sbin/init.d/skeleton script just to have the framework for the script, but I can't get it to work.
I have tried some debugging of the script, but can not get it to work (I am absolutely no expert at writing such scripts), so I was hoping that someone else might have a working script they would like to share. ;-)
I am running SuSE Linux 6.4 (i386) and Cyrus IMAPd 2.0.7 (the binaries are installed in /usr/cyrus/bin)
-- Eivind Olsen
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
participants (3)
-
bruce@toorak.com
-
eivind@aminor.no
-
nhasan@usa.net