You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-backup/burp/files/burp.initd

42 lines
1009 B

#!/sbin/openrc-run
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
BURP_CONFIG="/etc/burp/burp-server.conf"
description="Burp is a network backup and restore program"
command="/usr/sbin/burp"
command_args="-c '${BURP_CONFIG}' -F"
command_background="yes"
pidfile="/run/burp-server.pid"
start_stop_daemon_arg="--make-pidfile --wait 500"
extra_started_commands="reload summary"
description_reload="Reloads configuration"
description_summary="Displays main status monitor summary"
depend() {
need localmount
after bootmisc
use net
}
start_pre() {
checkpath -o burp:burp -m 0775 -d /run/lock/burp
checkpath -o root:burp -m 0775 -d /etc/burp
checkpath -o root:burp -m 0750 -d /etc/burp/clientconfdir
checkpath -o root:burp -m 0640 -f /etc/burp/burp-server.conf
}
reload() {
ebegin "Reloading ${SVCNAME} configuration"
start-stop-daemon --exec ${command} --signal HUP
eend $?
}
summary() {
"${command}" -c "${BURP_CONFIG}" -a S
}