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
#22985)

* Adding /etc/rc.d/init.d/functions to the init script when present to improve integration with systemd on systemd-based distros. See #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 #22255

* Adding SysV Init Functions for Debian and SUSE distros

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

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Tiago Costa <[email protected]>
  • Loading branch information
3 people committed Aug 15, 2020
1 parent 37d4a55 commit f97ac4d
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 f97ac4d

Please sign in to comment.