#!/sbin/openrc-run

command=/usr/bin/rclone
command_args="--config /etc/rclone-s3-backups.conf serve webdav --addr localhost:8081 bksync:/minmaxiste-backups"
command_background="true"
start_stop_daemon_args="-u rclone:rclone"
directory=/var/www
pidfile=/run/rclone-s3-backups.pid
output_logger="logger -e -i -t rclone-s3-backups -p daemon.info"
error_logger="logger -e -i -t rclone-s3-backups -p daemon.err"
umask=007

depend()
{
	use net
}
