dogslife

Member
May 29, 2003
18
0
151
I'm trying to troubleshoot a problem with MailScanner, and I can't stop it with:
service MailScanner stop

It kicks back : MailScanner: unrecognized service

Top shows it as:
/usr/bin/perl -I/usr/mailscanner/lib /usr/mailscanner/bin/MailScanner /usr/mailscanner/etc

Any ideas how to shut this bad boy down ?
 

mctDarren

Well-Known Member
Jan 6, 2004
665
8
168
New Jersey
cPanel Access Level
Root Administrator
Get the PID from your top command and kill it with

kill -9 PID

where, of course, PID is the PID you get from your top command above and not the actual text "PID". :)
 

dogslife

Member
May 29, 2003
18
0
151
Get the PID from your top command and kill it with

kill -9 PID

where, of course, PID is the PID you get from your top command above and not the actual text "PID". :)
I'm aware of how to kill processes, and it's really quite simple to kill a process from within TOP by pressing "k" and then typing the process and signal. Or you can kill all the processes owned by mailnull, which is the owner of MailScanner.

But MailScanner just spawns a new process. I thought it ran as a service, but it does not show up on the service list?
 
Last edited:

mctDarren

Well-Known Member
Jan 6, 2004
665
8
168
New Jersey
cPanel Access Level
Root Administrator
It's probably chkservd restarting it, you could remove it from the being monitored so when you shut it down it doesn't respawn or you could set it up correctly as a service using chkconfig. When it was installed did someone add it as a service?
 

dogslife

Member
May 29, 2003
18
0
151
It's probably chkservd restarting it, you could remove it from the being monitored so when you shut it down it doesn't respawn or you could set it up correctly as a service using chkconfig. When it was installed did someone add it as a service?
Thanks for the help!

I checked chkservd.conf and it only shows:
cpsrvd:1
exim:1
eximstats:1
ftpd:0
httpd:1
imap:1
interchange:0
mysql:1
pop:1
spamd:0
syslogd:1

No MailScanner. It was setup by a consultant that is not responding to emails, and it never ran as a service. Any other ideas?
 

mctDarren

Well-Known Member
Jan 6, 2004
665
8
168
New Jersey
cPanel Access Level
Root Administrator
Look in /etc/chkserv.d or /usr/local/cpanel/src/chkservd/chkserv.d and see if there is an entry there for mailscanner. If you don't want chkservd to restart it, remove that file. I would move it to root or some temp directory so you can easily move it back if/when needed. That should fix your restart problem so you can do further investigation of your first problem. :)
 

dogslife

Member
May 29, 2003
18
0
151
This is really getting strange, I don't see it in either place:
[/etc/chkserv.d]# ls
./ chkservd.conf exim ftpd imap mysql spamd
../ cpsrvd eximstats httpd interchange pop syslogd

[/usr/local/cpanel/src/chkservd/chkserv.d]# ls
./ antirelayd cpsrvd exim ftpd imap melange named postgresql syslogd
../ clamd entropychat eximstats httpd interchange mysql pop spamd tomcat


What else would you suggest?
 

dogslife

Member
May 29, 2003
18
0
151
Turns out it runs as a cron. I edited the crontab, and moved on from there.

Thanks for hanging in there and helping me out.

:)