#!/bin/sh # PROVIDE: kopia # REQUIRE: LOGIN # KEYWORD: shutdown . /etc/rc.subr name=kopia rcvar=kopia_enable load_rc_config $name : ${kopia_enable="NO"} : ${kopia_home_dir:="/usr/local/kopia"} pidfile="/var/run/${name}.pid" procname=/usr/local/bin/kopia command=/usr/sbin/daemon command_args="-f -p ${pidfile} -u kopia ${procname} server --insecure --address=http://0.0.0.0:51515 --without-password --config-file=${kopia_home_dir}/repository.config --cache-directory=${kopia_home_dir}/cache" run_rc_command "$1"