MailScanner and MySQL
James Gray
james at grayonline.id.au
Tue Apr 25 13:40:23 IST 2006
On Tue, 25 Apr 2006 22:18, James Gray wrote:
> On Tue, 25 Apr 2006 22:00, Martin wrote:
> > Hi,
> >
> > This may be a little OT, but i noticed a problem today on my debian
> > testbox. I'm running Mailscanner, Postfix, Mailwatch and MySQL.
GAH! You said it was debain...my bad.
Use the "update-rc.d" tool, as root, to modify the sequence of things so
that mysql starts before mailscanner.
In the debian world, the ONLY run level that is used (by default) is 2. So,
unless you've customised /etc/inittab to start a different run level, all
the info you need will be in /etc/rc2.d/.
On my debian (sarge) servers, mysql and mailscanner both start as item 20:
#ls /etc/rc2.d
...
S20mailscanner
S20mysql
...
So, to move mailscanner to start later, you'd cast the following spell (as
root):
#update-rc.d -f mailscanner remove
#update-rc.d mailscanner start 30 2 3 4 5 . stop 15 0 6 .
This will start mailscanner in run levels 2-5, and stop it in runlevels 0
and 6 (halt and reboot respectively). The "ID" of the startup is now 30
and shutdown order is 15 which on my systems will stop mailscanner at the
same time it stops fetchmail, but BEFORE it stops exim (stops at 19) and
mysql (stops at 20). So the start sequence now looks like this:
/etc/rc2.d/:
...
S20exim4
S20exim4.out
S20mysql
...
S30mailscanner
And the shutdown resembles this:
/etc/rc0.d/:
K15fetchmail
K15mailscanner
...
K19exim4
K19exim4.out
K20mysql
See how it works? Sorry about the bum steer with my last. Too much beer
and wine on a public holiday is my excuse
(http://en.wikipedia.org/wiki/Anzac_Day - "Lest we forget")
Cheers,
James
--
A musical reviewer admitted he always praised the first show of a
new theatrical season. "Who am I to stone the first cast?"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20060425/8465429b/attachment.bin
More information about the MailScanner
mailing list