src_prepare-overlay/net-analyzer/sensu/files/init.d/sensu-backend
grepwood b0f81bcd17 Removed old IceCat ebuild, it's redundant.
Minor fixes in sensu - no exec bit on init.d, corrected group keywords and changed number. Update is necessary.
2020-05-10 15:58:43 +02:00

24 lines
643 B
Plaintext

#!/sbin/openrc-run
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
description=""
name="Sensu Monitoring Framework"
command="/usr/sbin/sensu-backend"
command_args="start -c ${SENSU_BACKEND_CONFIG}"
command_user="sensu"
command_background=true
pidfile="/run/${SVCNAME}.pid"
required_files="${SENSU_BACKEND_CONFIG}"
retry=${SENSU_BACKEND_TERMTIMEOUT:-"TERM/20/KILL/5"}
start_stop_daemon_args="${SSD_OPTS:-}"
depend() {
need localmount net
}
start_pre() {
checkpath -d -m 0750 -o "${command_user}" "${SENSU_BACKEND_LOGDIR}" "${SENSU_BACKEND_DATADIR}" "${SENSU_BACKEND_CACHEDIR}"
}