#!/usr/bin/env bash
#
# Function that starts the daemon/service
#
do_start()
{
    $DAEMON $DAEMON_ARGS > /dev/null 2>&1 &
    echo $! > $PIDFILE

}
#
# Function that stops the daemon/service
#
do_stop()
{
    if [[ -f "$PIDFILE" ]]; then
        PID=$(cat $PIDFILE)
        kill -9 $PID > /dev/null 2>&1
    fi
}
#
# Function that sends a SIGHUP to the daemon/service
#
do_restart() {
    do_stop
    do_start
}

