#!/bin/sh # $FreeBSD: head/sysutils/rsyncmanager/files/rsyncmanager.in 340872 2014-01-24 00:14:07Z mat $ # # PROVIDE: rsyncmanager # REQUIRE: DAEMON # # Add the following line to /etc/rc.conf to enable rsyncmanager: # rsyncmanager_enable (bool): Set to "NO" by default. # Set it to "YES" to enable rsyncmanager # rsyncmanager_flags (str): Set to "-C -c %%PREFIX%%/etc/rsyncmanager.conf" by default. # Extra flags passed to start command . /etc/rc.subr name="rsyncmanager" rcvar=rsyncmanager_enable command="%%PREFIX%%/bin/rsyncmanager.rb" pidfile="/var/run/rsyncmanager.pid" command_interpreter="%%RUBY_WITHOUT_SUFFIX%%" required_files=%%PREFIX%%/etc/rsyncmanager.xml [ -z "$rsyncmanager_enable" ] && rsyncmanager_enable="NO" [ -z "$rsyncmanager_flags" ] && rsyncmanager_flags="-c %%PREFIX%%/etc/rsyncmanager.xml" load_rc_config $name extra_commands="reload" run_rc_command "$1"