#!/bin/sh /etc/rc.common
START=10
STOP=15

pidfile="/tmp/timebox.pid"

start() {
    echo Starting timebox
    /root/timebox.lua > /tmp/timebox.log &
    echo "$!" > $pidfile
}

stop() {
    echo Killing timebox
    cat $pidfile | xargs kill
}
