sert plus rien

darcs-hash:20020105124441-a279a-cf4f116a82b802a8460535a4b2d3836f7685df97.gz
This commit is contained in:
stransky 2002-01-05 13:44:41 +01:00
parent b18959eba9
commit ba8f7a4dc3
2 changed files with 0 additions and 36 deletions

View file

@ -1,12 +0,0 @@
#!/bin/zsh -p
# suid !!
id
echo "restarting the named (DNS) :"
kill -HUP `cat /var/run/named.pid`
echo "restarting the DHCP : "
#kill -TERM `cat /var/run/dhcpd.pid` || true
#/usr/sbin/dhcpd
/etc/init.d/dhcp reload

View file

@ -1,24 +0,0 @@
#!/usr/bin/env python
# -*- Python -*-
# teste si notre sendmail fonctionne encore.
from socket import *
import sys
OK = 0
host = "localhost"
if len(sys.argv) > 1:
host = sys.argv[1]
s = socket(AF_INET,SOCK_STREAM)
try:
s.connect(host,25)
data = s.recv(3)
OK = ("220" == data)
s.close()
except:
OK = 0
sys.exit(not OK)