Skip to content

Commit

Permalink
[7.12] [deb/rpm] Fix SysV init scripts (#95018) (#100477)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
jbudz and kibanamachine committed May 24, 2021
1 parent c9cc89b commit c079d76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/dev/build/tasks/os_packages/service_templates/env/kibana
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
user="kibana"
group="kibana"
chroot="/"
chdir="/"
nice=""

KBN_PATH_CONF="/etc/kibana"
RESTART_ON_UPGRADE="false"
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ start() {
chroot --userspec "$user":"$group" "$chroot" sh -c "
cd \"$chdir\"
exec \"$program $args\"
" >> /var/log/kibana/kibana.log 2>&1 &
exec \"$program\" \"$args\"
" >> /var/log/kibana/startup.log 2>&1 &

# Generate the pidfile from here. If we instead made the forked process
# generate it there will be a race condition between the pidfile writing
Expand Down

0 comments on commit c079d76

Please sign in to comment.