#!/bin/ksh
#
# rsync daemon for osstech-samba
#
# chkconfig: - 91 35
# chkconfig.solaris: 3 90 03
# chkconfig.aix: 2 390 03
# chkconfig.debian: 2345 20 19
# description: Starts and stops the rsync daemon \
#        used to provide Active Directory domain controller service.
#
### BEGIN INIT INFO
# Provides:             samba-sysvol-replication
# Required-Start:       $network $local_fs osstech-svscan
# Required-Stop:        $network $local_fs osstech-svscan
# Should-Start:         $syslog $time $named
# Should-Stop:          $syslog $time $named
# Default-Start:        2 3 4 5
# Default-Stop:         0 1 6
### END INIT INFO

. /etc/init.d/svinit || exit 1

sv_name="samba-sysvol-replication"

function sv_reload {
  sv_hangup "$1" "Reloading"
}

sv_init "$sv_name" ${1+"$@"}
