blob: 98277b00bf5650968d9e89a8284b085cf7597c06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
use logger
# The interfaces do not actually need to exist to start, it handles them gracefully.
use net
}
command="/usr/sbin/keepalived"
command_args="${KEEPALIVED_OPTS}"
extra_started_commands="reload"
pidfile="/run/${RC_SVCNAME}.pid"
required_files="/etc/keepalived/keepalived.conf"
reload() {
ebegin "Reloading ${RC_SVCNAME}"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
}
|