blob: 8468a1c88a76e265a2349b9894fefb10d6c949a3 [file] [log] [blame]
#!/bin/sh
case "$1" in
start)
mkdir -p /tmp/clockspeed/etc
nice babysit 60 run-tlsdate 2>&1 | logos tlsdate &
;;
stop)
pkillwait -x run-tlsdate
pkillwait -x tlsdate
pkillwait -x tlsdate-routeup
pkillwait -x clockspeed
;;
restart)
$0 stop; $0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac