install.sh

Eric Dantan Rzewnicki rzewnickie at RFA.ORG
Fri Mar 12 19:34:24 GMT 2004


On Tue, Mar 09, 2004 at 04:01:51PM -0800, John Rudd wrote:
> So, what exactly does install.sh do?
>
> I tend to shove mailscanner into /opt/mailscanner-$VERSION and work on
> it there until I'm ready to put it into production.  When that's ready,
> I remove the symlink "/opt/mailscanner" and point it at the new version
> (so I keep the old one around so I can fall back to it if there's a
> problem).
>
> I do NOT disable the /etc/init.d/sendmail and /etc/rc?.d/???sendmail
> scripts, I just have them invoke the 2 sendmails.  I also don't use any
> form of MailScanner rc script (though, if it would stick to only
> starting and killing mailscanner, I might start using it).
>
>
> If install.sh doesn't give me the option to do things that way, without
> modifying the script, then I would be unlikely to use it at all.  Which
> means I wouldn't want it to be mandatory, either (which seems to be the
> impression I'm getting about the install.sh script for the rpm
> distribution, because a lot of answers start out "run the install.sh
> script").

Sorry for the late reply. I was out for a few days.

I basically do things the same way John talks about as far as upgrading.

I also control the MTA (postfix here) with 2 separate init scripts, one
for incoming and one for outgoing.

I start MailScanner with check_mailscanner via cron:
@reboot                   [ -x /opt/MailScanner/bin/check_mailscanner ] && /opt/MailScanner/bin/check_mailscanner >/dev/null 2>&1
0,20,40 * *    *     *    [ -x /opt/MailScanner/bin/check_mailscanner ] && /opt/MailScanner/bin/check_mailscanner >/dev/null 2>&1

I don't have a clean way to automatically shut down MailScanner before
power down/reboot. I don't need that very often. The last time (also the
first time) I needed to do that I just got the pids manually from
check_mailscanner and killed the parent before shutting down.

I'm probably going to write or borrow a simple init script to do that
piece eventually.

-Eric



More information about the MailScanner mailing list