2009-02-05 :-)
_ 仕事
0830 出勤。
_ ドラゴンクエストIXの曲が初披露だとウソを書いた
第21回ファミリークラシックコンサート ドラゴンクエストの世界[ 20070809#p07 ]のときに「序曲のマーチ」を演奏してたではないか。
_ [ifconfig]応答がなかったら if をリセットする
#!/bin/sh ifreset() { ifconfig vr0 up } heartbeat() { ping -c 1 192.168.0.1 if [ $? != 0 ]; then ifreset fi } heartbeat
man ifconfig すると
up Mark an interface ``up''. This may be used to enable an interface after an ``ifconfig down.'' It happens auto- matically when setting the first address on an interface. If the interface was reset when previously marked down, the hardware will be re-initialized.
ということなので up すれば down もしてくれる。
( thx fujiwara )
_ サーバーが突然死していた
なんも分からない。
Feb 5 09:10:44 hitomi nbtinydns: 4c0910ab:f584:ad19 - 0002 . Feb 5 09:10:45 hitomi nbtinydns: 5995ddb6:55c8:6a53 - 0002 . Feb 5 09:10:46 hitomi nbtinydns: 5995ddb6:20a1:515d - 0002 . Feb 5 09:10:49 hitomi nbtinydns: 5995ddb6:a71b:0781 - 0002 . Feb 5 09:10:49 hitomi nbtinydns: 5995ddb6:d303:2620 - 0002 . Feb 5 09:10:51 hitomi nbtinydns: 5995ddb6:144e:3d10 - 0002 . Feb 5 18:11:30 hitomi syslogd: restart Feb 5 18:11:30 hitomi /netbsd: Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001 , 2002, 2003, 2004, 2005, Feb 5 18:11:30 hitomi /netbsd: 2006, 2007 Feb 5 18:11:30 hitomi /netbsd: The NetBSD Foundation, Inc. All rights reserved . Feb 5 18:11:30 hitomi /netbsd: Copyright (c) 1982, 1986, 1989, 1991, 1993 Feb 5 18:11:30 hitomi /netbsd: The Regents of the University of California. Al l rights reserved. Feb 5 18:11:30 hitomi /netbsd: Feb 5 18:11:30 hitomi /netbsd: NetBSD 4.0 (GENERIC) #0: Tue Mar 18 23:09:20 JST 2008
_ サーバーが死んだのはブレーカーが落ちたためだった
(´・ω・`)
[ツッコミを入れる]