Koozali.org: home of the SME Server

Qmail won't stop or restart

Erik

Qmail won't stop or restart
« on: August 29, 2002, 01:51:08 AM »
Hi All,

I sometimes encounter situations where I need to restart qmail. Until recently this was not a problem. I would simply enter 'service qmail restart' and qmail would stop and start again. Now when I try to restart qmail it fails when it trys to stop qmail and says OK when it starts qmail.

I am adding email aliases so this is a neccesary task.

Any advice as to what could have happened would be appreciated.

Best,
Erik

Charlie Brady

Re: Qmail won't stop or restart
« Reply #1 on: August 29, 2002, 04:21:46 AM »
Erik wrote:

> I sometimes encounter situations where I need to restart
> qmail. Until recently this was not a problem. I would simply
> enter 'service qmail restart' and qmail would stop and start
> again. Now when I try to restart qmail it fails when it trys
> to stop qmail and says OK when it starts qmail.

We don't support or advocate use of "service". Use instead:

/etc/e-smith/events/actions/email-restart

Charlie

Erik

Re: Qmail won't stop or restart
« Reply #2 on: August 29, 2002, 06:47:46 PM »
I tried this but I get an error.

"servicecontrol: unknown serviceAction $action"

Erik

Re: Qmail won't stop or restart
« Reply #3 on: August 30, 2002, 02:16:35 AM »
I looked in the actions folder and their is no command called "email-restart" only "email-update."

Charlie Brady

Re: Qmail won't stop or restart
« Reply #4 on: August 30, 2002, 02:25:23 AM »
Erik wrote:

> I tried this but I get an error.
>
> "servicecontrol: unknown serviceAction $action"

OK, so you don't have the fixed version of that script yet. Try:

/etc/rc.d/rc7.d/S80qmail restart

But why do you think you need to restart qmail anyway? New ~alias .qmail files are found straight away.

Charlie

Erik

Re: Qmail won't stop or restart
« Reply #5 on: August 30, 2002, 02:31:22 AM »
It still says that it failed to stop qmail.

stopping qmail:  [FAILED]
starting qmail: [OK]

If I do not restart qmail my 90aliases document is not read and the newly virtual domain based email addresses do not work.

Charlie Brady

Re: Qmail won't stop or restart
« Reply #6 on: August 30, 2002, 03:04:35 AM »
Erik wrote:

> If I do not restart qmail my 90aliases document is not read
> and the newly virtual domain based email addresses do not work.

I don't know what your 90aliases document is.

qmail rarely needs to be restarted. If you've added a new virtualdomain, then just run:

/etc/e-smith/events/actions/email-sighup

Charlie

wawan

Qmail won't stop or restart
« Reply #7 on: September 04, 2004, 04:56:39 AM »
I have the same problem, could not stop the qmail service with below error when do 'service --status-all':
/service/qmail: up (pid 1148) 61577 seconds, normally down, want down
The random data source exists

Any one could help, please...
Thanks.

arrowsmith

Qmail won't stop or restart
« Reply #8 on: December 13, 2004, 08:52:42 AM »
I have same problem here, i need to stop qmail so i can delete some of the queue.  I was told it is very important to stop qmail first, is this right?

Anyhow Qmail stop: FAiled, all the time unless the queue is empty.

Offline nald

  • ***
  • 66
  • +0/-0
    • http://www.phisl.net
Qmail won't stop or restart
« Reply #9 on: December 14, 2004, 02:00:24 AM »
I also encounter the same problem.  However it will stop after a few minutes.  Just wait and try to type,

# service qmail status

and you will recieve this message

/service/qmail: down 59744 seconds
............

arrowsmith

Qmail won't stop or restart
« Reply #10 on: December 14, 2004, 03:10:44 AM »
Thanks to ... in another thread, i have solved the problem. Sorry i can't remember his name but this it what he told us to type to get it to stop properly and yes it worked for me.


*************************
If all you want to do is stop qmail from running, do this as root:

# service smtpfront-qmail stop
# service qmail stop

To make this setting survive a reboot:

# /sbin/e-smith/config setprop smtpfront-qmail status disabled

# /sbin/e-smith/config setprop qmail status disabled

Note that doing this will prevent the SME from sending admin status reports etc.