blob: c06615b2dd247505423e6537e63a05d95cf5e7a5 [file] [log] [blame]
#!/bin/sh
case "$1" in
start)
nice babysit 60 vmstat 15 2>&1 | logos vmstat &
if is-storage-box; then
nice babysit 60 diskperf 15 2>&1 | logos diskperf &
fi
;;
stop)
pkillwait -x vmstat
pkillwait -x diskperf
;;
restart|reload)
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac