Mailinglist Archive: opensuse (2269 mails)
|< Previous||Next >|
Re: [SLE] Anyone have a rc-script for Cyrus IMAPd?
- From: bruce@xxxxxxxxxx (Bruce)
- Date: Thu, 5 Oct 2000 09:56:03 +1100
- Message-id: <email@example.com>
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
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
The link is the trick
DO NOT PLACE you SxxRoutine before others unless you know what you are doing.
Linux death can be painful.
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
/bin/echo "Starting up the 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.
PS Please reply through suse-linux-e@xxxxxxxx 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!!
>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.
>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
>> 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@xxxxxxxx
>For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
>Also check the FAQ at http://www.suse.com/support/faq
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the FAQ at http://www.suse.com/support/faq
|< Previous||Next >|