#!/bin/bash
# Author: Steven Shiau <steven _at_ nchc org tw>
# License: GPL 

# This service will reset the DRBL server, so
# it will NOT (yes, not) provide clonezilla service when the server boots.
# Only when server finishes booting, and when drbl-ocs is run 
# with some appropriate parameters, the clonezilla service will start.

# Load DRBL and Clonezilla functions
. /opt/drbl/sbin/drbl-conf-functions
. /opt/drbl/sbin/ocs-functions
. /opt/drbl/conf/drbl-ocs.conf


#
case "$1" in
  start|stop)
    echo "Reset the server status in non-clonezilla mode..."
    /opt/drbl/sbin/drbl-ocs --language en stop &>/dev/null;;
  *)
    echo "Usage: $0 [-c|-p] {start|stop}"
    exit 2
    ;;
esac

exit 0
