#!/bin/bash
#
# File:    /etc/init.d/watchdog
# Date:    25. 02. 2019
# Author:  Michael Kirsch (mickimzg@gmail.com)
# Desc.:   System init script as Watchdog for running services
#

### BEGIN INIT INFO
# Provides:          watchdog
# Required-Start:    $local_fs $network
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Watchdog for FRN Services
# Description:       System init script as Watchdog for running services
### END INIT INFO

case "$1" in
  start)
	  /opt/PiCQ/work/watchdog.sh >/dev/null 2>&1 &
  ;;
  stop)
    exit 0
  ;;
  *)
    echo "Usage: $0 {start|stop}"
    exit 1
    ;;
esac

exit 0