Skip to content

Commit

Permalink
Adding /etc/rc.d/init.d/functions to the init script when present to … (
Browse files Browse the repository at this point in the history
elastic#22985) (elastic#75111)

* Adding /etc/rc.d/init.d/functions to the init script when present to improve integration with systemd on systemd-based distros. See elastic#22255

* Adding SysV Init Functions for Debian and SUSE distros

* Adding /etc/rc.d/init.d/functions to the init script when present to improve integration with systemd on systemd-based distros. See elastic#22255

* Adding SysV Init Functions for Debian and SUSE distros

* docs(NA): include a comment to explain the change

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>

Co-authored-by: Aaron Levy <aaronmaxlevy@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 15, 2020
1 parent 37d4a55 commit 096d65f
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@
# Description: Kibana
### END INIT INFO

#
# Source function libraries if present.
# (It improves integration with systemd)
#
# Red Hat
if [ -f /etc/rc.d/init.d/functions ]; then
. /etc/rc.d/init.d/functions

# Debian
elif [ -f /lib/lsb/init-functions ]; then
. /lib/lsb/init-functions

# SUSE
elif [ -f /etc/rc.status ]; then
. /etc/rc.status
rc_reset
fi

name=kibana
program=/usr/share/kibana/bin/kibana
pidfile="/var/run/kibana/$name.pid"
Expand Down

0 comments on commit 096d65f

Please sign in to comment.