mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-26 20:02:30 +01:00
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 4998b609e9a4ad588bc3f7cc04b245b77cd93bd0.
17 lines
331 B
Bash
17 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
|
|
}
|