Board logo

標題: [技巧] vm-pop3d dead but subsys locked ? [打印本頁]

作者: adj    時間: 2008-4-9 13:24     標題: vm-pop3d dead but subsys locked ?

如果你遇到 vm-pop3d 的Process 掛掉...restart 又沒作用...該怎麼辦?

Sometimes my vm-pop3d dies without giving any error.
When I try to restart the service

service vm-pop3d restart
it says
vm-pop3d dead but subsys locked

so I
rm -f /var/lock/subsys/vm-pop3d

and then restart
But this problem is really annoying because when pop3d is dead everthing is dead according to my clients
I examine the /var/log/maillog and /var/log/messeges files but there were no specific cause for this problem.
作者: adj    時間: 2008-4-9 13:26

你可以改用 xinetd 的方式來提供服務

1. turn off the boot script:
chkconfig vm-pop3d off
2. setup xinet.d
edit /etc/xinetd.d/pop3 and add:
引用:
# default: on
# description: pop3
service pop3
{
log_on_success += DURATION USERID
log_on_failure += USERID
port = 110
socket_type = stream
user = root
server = /usr/local/sbin/vm-pop3d
server_args = -t 600
wait = no
nice = 10
}
3. 重啟 xinetd
#service vm-pop3d stop
#service xinetd restart

透過這種方式...相信vm-pop3d  的dameon無緣無故掛掉的現象應該就可以解除了...




歡迎光臨 ADJ網路實驗室 (http://dz.adj.idv.tw/) Powered by Discuz! 6.0.0