mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
rsync: import from packages
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user