diff options
author | Oliver Eikemeier <eik@FreeBSD.org> | 2003-11-16 23:08:12 +0000 |
---|---|---|
committer | Oliver Eikemeier <eik@FreeBSD.org> | 2003-11-16 23:08:12 +0000 |
commit | 95dd23c5980bb755af27f20156c6f17c5235fb56 (patch) | |
tree | e2aca8bde53f8c5fe318e4ef9e26776a4c9cfb83 /net/rsync/files/rsyncd.sh | |
parent | - Use system gettext library instead of bundled one (diff) |
- add rc.subr(8) start/stop script
- assume maintainership, I don't speak Haskell .-P
- install some additional documentation
- USE_SSH => !WITHOUT_SSH, no extra warning
since this is default for OSVERSION >= 400016
- added a test target
- bumped PORTREVISION
Approved by: marcus (mentor)
Diffstat (limited to 'net/rsync/files/rsyncd.sh')
-rw-r--r-- | net/rsync/files/rsyncd.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/net/rsync/files/rsyncd.sh b/net/rsync/files/rsyncd.sh new file mode 100644 index 000000000000..28a85e8bef02 --- /dev/null +++ b/net/rsync/files/rsyncd.sh @@ -0,0 +1,34 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: rsyncd +# REQUIRE: LOGIN +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable rsyncd: +# +#rsyncd_enable="YES" +# +# See rsync(1) for flags +# + +. %%RC_SUBR%% + +name=rsyncd +rcvar=`set_rcvar` + +command=%%PREFIX%%/bin/rsync +command_args="--daemon" +pidfile=/var/run/${name}.pid +required_files=%%PREFIX%%/etc/${name}.conf + +# set defaults + +rsyncd_enable=${rsyncd_enable:-"NO"} +rsyncd_flags=${rsyncd_flags:-""} + +load_rc_config ${name} +run_rc_command "$1" |