Reloading config
Magnus [ISO-8859-1] Morén
magnus.moren at CITE.HH.SE
Tue Feb 22 12:17:43 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, 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.
> Are you sure `cat /opt/MailScanner/var/MailScanner.pid` isn't catting a
> non-existent file?? This may or may not generate an error depending on how
> the script is written... my init scripts only dump errors to syslog unless
> something catastrophic happens :P
> What does "ps" say? (Column names inserted manually for Linux)
> Your script should be finding the *FIRST* MailScanner PID (19221 in
> my case) when catting the PID file.
Even this looks good to me.
# cat /opt/MailScanner/var/MailScanner.pid
13896
# ps -fe | grep 13896 (Last part of output is truncated)
UID PID PPID C STIME TTY TIME CMD
root 17344 13896 2 12:58:31 ? 0:02 /usr/bin/perl \
-I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
root 17310 13896 3 12:58:21 ? 0:04 /usr/bin/perl \
-I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
root 17494 13896 1 12:59:41 ? 0:02 /usr/bin/perl \
-I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
root 13896 1 0 08:57:18 ? 0:00 /usr/bin/perl \
-I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
--
Magnus Morén____________________________________________
Central IT / CITE, Högskolan i Halmstad, 035-167383
Box 823, 301 18 HALMSTAD, epost: magnus.moren at cite.hh.se
--
Magnus Morén____________________________________________
Central IT / CITE, Högskolan i Halmstad, 035-167383
Box 823, 301 18 HALMSTAD, epost: magnus.moren at cite.hh.se
------------------------ 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