mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-27 01:11:33 +02:00
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).
24 lines
530 B
Plaintext
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 $?
|
|
}
|