#!/bin/sh

# Init file for synchrone
#
# chkconfig: 2345 12 88
# description: synchrone is a simple wrapper for rsync(1)
#
# config: /etc/synchrone/config/global
# config: /etc/synchrone/config/local
# config: /etc/synchrone/rules/main
# config: /etc/synchrone/rules/local
# config: /etc/synchrone/rules/upgrade

WITHOUT_RC_COMPAT=1

SYNCHRONE=/usr/bin/synchrone

case "$1" in
	start)
		## synchonize time
		#if which rdate > /dev/null 2>&1; then
		#	rdate -s host1
		#	hwclock --systohc
		#fi
		"$SYNCHRONE" --upgrade
		"$SYNCHRONE" --get
		;;
	stop)
		;;
	restart)
		#"$SYNCHRONE" --get
		;;
	reload)
		;;
	status)
		;;
	*)
		;;
esac

exit 0

