[Fri Dec 08 18:43:59 2006] [notice] caught sigterm, shutting down 在apache的错误日志里看到的,是否是apache停止的记录,因为一早发现apche down了,但怎么查原因呢?
by greysky-zfj - 系统管理 - 2006-12-11 11:19:27 阅读(1852) 回复(0)
VM下freebsd6.2 的web服务器问题多多 用/usr/ports中的相应包编译apache+php+mysql 一切OK后,首次打开http://192.168.1.250(服务器IP)可以看到相关的成功信息 刷新一下后就什么也没有了 more /var/log/httpd-error.log [code] [Sat Feb 23 06:45:35 2008] [notice] caught sigterm, shutting down [Sat Feb 23 06:45:41 2008] [notice] Digest: generating secret for digest authentication ... [Sat Feb 23 06:45:41 2008] [...
完整错误提示:$ telnet localhost 80 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. no listening sockets available, shutting down Unable to open logs Connection closed by foreign host. 使用xinetd启动apache 配置如下: service http { socket_type = stream wait = no user = root server ...
我本机reboot这台机器,会出现shutting down smartd [failed],后来机器就卡在这边,不能重启,请问为什么? 有什么解决方法?
我写了一个后台程序,在系统重启时会做一些保存工作。因此用signal()对sigterm进行了处理。测试时让后台程序运行,用命令kill -15 PID,保存工作运行良好。但是实际测试,我用命令 reboot,后台进程却不能接收到sigterm信号,未进行保存工作。 同样都是发送sigterm信号给进程(kill和reboot),为什么处理不一样?请指点。
下面shell脚本报如下错误.经常测试是nmap导致的.是什么原因呢! for ip in `cat mysql_ip.txt` do if [[ `nmap -sT $ip | grep 3306 | wc -l` -eq 0 ]] then echo '$ip mysqld is down' | mutt -s '$ip mysqld is down\n' [email]mail@139.com[/email] fi done
RELEASE_ON_sigterm=yes. This entry is commented out by default, so uncomment it to make the client relinquish its IP address when it shuts down or reboots. 这个默认是被注释的,如果取消注释的话,那么客户段在从新关闭后就会放弃这个IP地址
最近写一个程序,希望在收到sigterm的时候正常退出。 现在的情况是: 如果程序外部发来sigterm(例如在命令行pkill myprocess),程序能正常退出。 但如果是程序主线程中检测到特定条件后主动调用raise(sigterm),程序就不会退出。还没来得及仔细研究,目前看到的现象是:主线程肯定是不再循环了,其它线程是否还在运行不清楚。 raise(sigterm)改成raise(SIGKILL)能把程序杀死,所以raise我应该没有用错。