mirror of https://github.com/dirtbags/moth.git
Add heartbeatd
This commit is contained in:
parent
b5c517e2c0
commit
f666930688
|
@ -0,0 +1,8 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
case "$REMOTEADDR" in
|
||||||
|
10.0.0.[2-254])
|
||||||
|
touch /var/lib/pollster/$REMOTEADDR
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
# Busybox netcat doesn't support UDP unless you compile in desktop mode.
|
||||||
|
# No problem, traceroute can send a UDP packet too.
|
||||||
|
while true; do
|
||||||
|
# Apparently traceroute adds 1 to the base port (-p)
|
||||||
|
traceroute -m 2 -q 1 -p 8 10.0.0.1
|
||||||
|
sleep 10
|
||||||
|
done
|
|
@ -0,0 +1,3 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
exec udpsvd 0 9 /usr/sbin/in.heartbeatd
|
Loading…
Reference in New Issue