blob: 4959dc0b5b872013dd956e59e54b94dcef9bfa97 [file] [log] [blame]
#!/bin/sh
case "$1" in
start)
if [ ! -z "$(lsubi)" ]; then
babysit 60 ubifsmonitor 2>&1 | logos ubifsmonitor &
fi
;;
stop)
pkillwait -x ubifsmonitor
;;
restart|reload)
$0 stop; $0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac