help , i can't close service like "dovecot "

jia

New member
Joined
Oct 21, 2010
Messages
2
use "ps" command view the service like this

dovecot 1365 0.0 0.5 5180 1952 ? S 21:27 0:00 pop3-login
dovecot 1391 0.0 0.5 5192 1968 ? S 21:27 0:00 imap-login

in /etc/init.d directory,files like this
-rwxr-xr-x 1 root root 1040 Oct 16 22:53 da-popb4smtp
-rwxr-xr-x 1 root root 1134 Oct 16 23:09 dovecot

I use command “service dovecot stop”,but a moment later it start again。。。

I also use command "service dovecot stop" and then "chkconfig dovecot off",but a moment later it also start again

help me ,thanks.

Chinese people,so my english is poor,i'm so sorry!
 
Code:
/etc/init.d/dovecot stop

Should work, but

Code:
service dovecot stop

should also work, try the first command and let me know. You could try to edit the services.status file:

Code:
nano -w /usr/local/directadmin/data/admin/services.status

Change:

Code:
dovecot=ON

To

Code:
dovecot=OFF

And then try:

Code:
/sbin/service directadmin restart
 
Last edited:
If you dont stop it with directadmin it will auto restart.

Edit /usr/local/directadmin/data/admin/services.status and change dovecot=ON to dovecot=OFF

Then stop it with the normal method.

Or just stop it in directadmin and it wont restart.
 
you are right

Code:
/etc/init.d/dovecot stop

Should work, but

Code:
service dovecot stop

should also work, try the first command and let me know. You could try to edit the services.status file:

Code:
nano -w /usr/local/directadmin/data/admin/services.status

Change:

Code:
dovecot=ON

To

Code:
dovecot=OFF

And then try:

Code:
/sbin/service directadmin restart

yes , you are right!
I use your method to solved it already.
thank you.

And i surprised,you can understand my words!
 
Back
Top