#!/sbin/openrc-run # Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 : ${KEYDB_SENTINEL_DIR:=/tmp} : ${KEYDB_SENTINEL_CONF:=/etc/keydb/sentinel.conf} : ${KEYDB_SENTINEL_USER:=keydb} : ${KEYDB_SENTINEL_GROUP:=keydb} : ${KEYDB_SENTINEL_TIMEOUT:=30} command="/usr/sbin/keydb-sentinel" command_args="${KEYDB_SENTINEL_CONF}" command_background="true" command_user="${KEYDB_SENTINEL_USER}:${KEYDB_SENTINEL_GROUP}" pidfile="/run/${RC_SVCNAME}.pid" retry="${KEYDB_SENTINEL_TIMEOUT}" start_stop_daemon_args="--chdir \"${KEYDB_SENTINEL_DIR}\"" depend() { use localmount logger after keepalived keydb }