aboutsummaryrefslogtreecommitdiff
path: root/net/rsync/files
diff options
context:
space:
mode:
authorMaxim Storchak <m.storchak@gmail.com>2014-06-24 16:50:35 +0300
committerMaxim Storchak <m.storchak@gmail.com>2014-06-27 13:14:56 +0300
commit4145614571655c613690a579fa7bf87e8fe47c0f (patch)
tree96ea55cdc13337665d90f11a0b214d61676c7477 /net/rsync/files
parent630ae414b2958a0251bf087bd3bd33403d6e8374 (diff)
rsync: import from packages
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
Diffstat (limited to 'net/rsync/files')
-rw-r--r--net/rsync/files/rsyncd.conf15
-rw-r--r--net/rsync/files/rsyncd.init14
2 files changed, 29 insertions, 0 deletions
diff --git a/net/rsync/files/rsyncd.conf b/net/rsync/files/rsyncd.conf
new file mode 100644
index 000000000..896f36887
--- /dev/null
+++ b/net/rsync/files/rsyncd.conf
@@ -0,0 +1,15 @@
+# /etc/rsyncd.conf
+# Minimal configuration for rsync daemon
+
+# Next line required for init script
+pid file = /var/run/rsyncd.pid
+use chroot = yes
+uid = nobody
+gid = nogroup
+read only = yes
+
+# Simple example to configure server
+#[openwrt-etc]
+#path = /etc
+#comment = OpenWrt Configuration Files
+#exclude = /init.d
diff --git a/net/rsync/files/rsyncd.init b/net/rsync/files/rsyncd.init
new file mode 100644
index 000000000..d226d0f3f
--- /dev/null
+++ b/net/rsync/files/rsyncd.init
@@ -0,0 +1,14 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2011-2014 OpenWrt.org
+
+START=90
+STOP=10
+
+USE_PROCD=1
+PROG=/usr/bin/rsync
+
+start_service() {
+ procd_open_instance
+ procd_set_param command "$PROG" --daemon --no-detach
+ procd_close_instance
+}