net-misc/bird: Another fix for the init

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr
This commit is contained in:
Alarig Le Lay 2020-04-22 13:31:40 +02:00
parent 78542a187a
commit ad2873fe79
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
1 changed files with 5 additions and 1 deletions

View File

@ -21,7 +21,7 @@ if [ ${BIRD_USER} ]; then
fi
client_args="-s ${SOCK}"
command_args="${client_args} -c ${CONF_FILE} ${BIRD_OPTS}"
command_args="${client_args} -c ${CONF_FILE} -P ${pidfile} ${BIRD_OPTS}"
client_args="${client_args} -r"
depend() {
@ -52,6 +52,10 @@ reload() {
eend $?
}
start_post() {
checkpath -f -m 0655 -o bird:bird "${pidfile}"
}
stop_pre() {
if [ "${RC_CMD}" = "restart" ] ; then
check_run || return 1