chk-pptp
페이지 정보
작성자 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 9,546회 작성일 08-07-06 13:24본문
외부에서 접속이 재개됩니다.
# pptpdown
IP4 Link DOWN !!
# pptpup
WAIT . . . . link OK !!
# pptpdown
IP4 Link DOWN !!
# pptpup
WAIT . . . . link OK !!
# crontab -l
*/1 * * * * /usr/local/sbin/chk-pptp
cat /usr/local/sbin/chk-pptp
#!/bin/bash
PS="/bin/ps"
GREP="/bin/grep"
if ! $PS ax | $GREP pppd | $GREP -w ip4 >/dev/null 2>&1; then
/usr/local/sbin/pptpdown
sleep 1
/usr/local/sbin/pptpup
##### 080704 named reload -ByeongUk
if $PS ax | $GREP named | $GREP -v grep >/dev/null 2>&1; then
/etc/init.d/named reload
fi
##### 080704 end
fi
exit
*/1 * * * * /usr/local/sbin/chk-pptp
cat /usr/local/sbin/chk-pptp
#!/bin/bash
PS="/bin/ps"
GREP="/bin/grep"
if ! $PS ax | $GREP pppd | $GREP -w ip4 >/dev/null 2>&1; then
/usr/local/sbin/pptpdown
sleep 1
/usr/local/sbin/pptpup
##### 080704 named reload -ByeongUk
if $PS ax | $GREP named | $GREP -v grep >/dev/null 2>&1; then
/etc/init.d/named reload
fi
##### 080704 end
fi
exit
댓글목록
등록된 댓글이 없습니다.