sendmail linux 止めるベクベク。。
[maint01@cent-test01 rc.d]$ pwd
/etc/rc.d
[maint01@cent-test01 rc.d]$ /etc/rc.d/init.d/sendmail status
/etc/rc.d/init.d/functions: line 141: /var/run/sendmail.pid: 許可がありません
sendmail が停止していますが PID ファイルが残っています
[maint01@cent-test01 rc.d]$ su
パスワード:
[root@cent-test01 rc.d]# /etc/rc.d/init.d/sendmail status
sendmail (pid 2144) を実行中...
[root@cent-test01 rc.d]# ps -ef| grep send
root 2144 1 0 21:13 ? 00:00:00 sendmail: accepting connections
smmsp 2156 1 0 21:14 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root 2741 2722 0 21:17 pts/1 00:00:00 grep send
[root@cent-test01 rc.d]# ps -ef| grep 2144
root 2144 1 0 21:13 ? 00:00:00 sendmail: accepting connections
root 2743 2722 0 21:17 pts/1 00:00:00 grep 2144
[root@cent-test01 rc.d]#
[root@cent-test01 rc.d]# checkconfig sendmail off
bash: checkconfig: command not found
[root@cent-test01 rc.d]# /sbin/checkconfig sendmail off
bash: /sbin/checkconfig: そのようなファイルやディレクトリはありません
[root@cent-test01 rc.d]# /sbin/chkconfig sendmail off
[root@cent-test01 rc.d]# ps -ef| grep 2144
root 2144 1 0 21:13 ? 00:00:00 sendmail: accepting connections
root 2750 2722 0 21:18 pts/1 00:00:00 grep 2144
[root@cent-test01 rc.d]# /etc/rc.d/init.d/sendmail status
sendmail (pid 2144) を実行中...
[root@cent-test01 rc.d]# /sbin/checkconfig --list sendmail
bash: /sbin/checkconfig: そのようなファイルやディレクトリはありません
[root@cent-test01 rc.d]# /sbin/chkconfig --list sendmail
sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@cent-test01 rc.d]# /sbin/chkconfig sendmail on
[root@cent-test01 rc.d]# /sbin/chkconfig --list sendmail
sendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@cent-test01 rc.d]# /sbin/chkconfig sendmail off
[root@cent-test01 rc.d]# /sbin/chkconfig --list sendmail
sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@cent-test01 rc.d]#
http://pucyan.blog77.fc2.com/blog-entry-39.html
ここもかも
0 件のコメント:
コメントを投稿