#! /bin/sh
#
# Start/stop sitback (SImpel Tar BACKup) in daemon mode
#
# This is a sysV style init. script. If you are not doing
# sysV initialization, patch this to your init. scripts.
#
# This script has been stolen from Redhat 6.0, then modifyed
# to suit my needs..


# Source function library.
#
. /etc/rc.d/init.d/functions



# See how we were called.
case "$1" in
  start)
  	echo -n "Starting sitback in daemon mode: "
  #
  # Put the name of your own script instead of 'default'
  #
	daemon /opt/sitback/bin/sitback -d default

	echo
	;;
  stop)
	echo -n "Stopping sitback in daemon mode: "
	killproc sitback

	echo
	;;

  status)
       tail /opt/sitback/var/sitback.log
       ;;
  *)
	echo "Usage: sitback.rc {start|stop|status}"
	exit 1
esac

exit 0
