#!/sbin/runscript

depend() {
        need net
        use logger
}

start() {
# archttp looks for and write in config file under /.  as I can tell there is
# no way to specify the path to the config file.
        ebegin "Starting Areca Webserver"
        start-stop-daemon --start --quiet --exec /usr/sbin/archttp64 > /dev/null &
        eend $?
}

stop() {
        ebegin "Stopping Areca Webserver"
        start-stop-daemon --stop -s INT --retry timeout --exec /usr/sbin/archttp64
        sleep 5
        eend $?
}
