aports/main/rsync/rsyncd.initd
Jakub Jirutka 725ac7fb78 main/rsync: don't force supervise-daemon
supervise-daemon is still experimental, has bad defaults and tends
to be unreliable. Users can enable supervise-daemon, if they want to,
simply by declaring `supervisor=supervise-daemon` in
/etc/conf.d/rsyncd.

See my mail from Tue, 15 Dec 2020 15:33:16 +0100 in alpine-devel
mailing-list in topic "Use of supervise-daemon in Alpine".
(I cannot simply reference it from ML archive because it's broken.)

This partially reverts 4998b609e9.
2021-01-08 13:13:15 +01:00

16 lines
331 B
Bash

#!/sbin/openrc-run
: ${cfgfile:="/etc/rsyncd.conf"}
command="/usr/bin/rsync"
command_args="--daemon --no-detach --config=$cfgfile
$command_args $RSYNC_OPTS" # RSYNC_OPTS is here for backward compatibility
command_background="yes"
pidfile="/run/$RC_SVCNAME.pid"
required_files="$cfgfile"
depend() {
use net
after firewall
}