Reloading config
James Gray
james_gray at ocs.com
Tue Feb 22 22:44:04 GMT 2005
[ The following text is in the "iso-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
On Tue, 22 Feb 2005 11:17 pm, Magnus Morén wrote:
> On Tue, 2005-02-22 at 21:39 +1100, James Gray wrote:
> > On Tue, 22 Feb 2005 07:44 pm, Magnus Morén wrote:
> > > 'reload')
> > > echo "Reloading MailScanner config"
> > > kill -HUP `cat /opt/MailScanner/var/MailScanner.pid`
> > > ;;
> >
> > Where is you PID file in MailScanner.conf? Mine says:
> > PID file = /var/run/MailScanner.pid
>
> # grep PID /opt/MailScanner/etc/MailScanner.conf
> PID file = /opt/MailScanner/var/MailScanner.pid
>
> Looks good.
Agreed. Even though I've snipped the rest of the info, the only thing Ian
think of is that whatever user is running the script either:
1 - doesn't have permission to read the PID file
2 - doesn't have permission to HUP the MailScanner process.
3 - the script is somehow not executing `cat <PIDFILE>` (`cmd` is a
Bourne/bash thing; does the script have the right shell in #!/foo/shell ?)
Beyond that - I'm out of ideas at the moment. What happens if you run a
"kill -HUP `cat <PIDFILE>`" as root?? Do you get an error message? Is there
anything that gives a clue in the mail log etc?
If I think of anything else I'll let you know :-/
Cheers,
James
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list