diff options
author | Maxim Storchak <m.storchak@gmail.com> | 2014-06-24 16:50:35 +0300 |
---|---|---|
committer | Maxim Storchak <m.storchak@gmail.com> | 2014-06-27 13:14:56 +0300 |
commit | 4145614571655c613690a579fa7bf87e8fe47c0f (patch) | |
tree | 96ea55cdc13337665d90f11a0b214d61676c7477 /net/rsync/files/rsyncd.init | |
parent | 630ae414b2958a0251bf087bd3bd33403d6e8374 (diff) |
rsync: import from packages
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
Diffstat (limited to 'net/rsync/files/rsyncd.init')
-rw-r--r-- | net/rsync/files/rsyncd.init | 14 |
1 files changed, 14 insertions, 0 deletions
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 +} |