aports/testing/keepalived/keepalived.initd
Jakub Jirutka b583bcceaf testing/keepalived: improve runscript, remove misleading checkconfig
checkconfig should check a config file for syntax and maybe semantic
errors, not just that the file exists. This is useless and misleading.
Also keepalived does NOT provide a functionality for checking config
file for errors like nginx (its check command is for something else).
2016-08-15 18:12:34 +02:00

24 lines
530 B
Plaintext

#!/sbin/openrc-run
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
extra_commands="reload"
command="/usr/sbin/keepalived"
command_args="${KEEPALIVED_OPTS}"
pidfile="/run/keepalived.pid"
required_files="/etc/keepalived/keepalived.conf"
depend() {
use logger
# The interfaces do not actually need to exist to start,
# it handles them gracefully.
use net
}
reload() {
ebegin "Reloading keepalived.conf"
start-stop-daemon --pidfile $pidfile --signal HUP
eend $?
}