1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/sysutils/rsyncmanager/files/rsyncmanager.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

31 lines
884 B
Bash

#!/bin/sh
# $FreeBSD$
#
# 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"