mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[deb/rpm] kibana.service cleanup (#75219)
This commit is contained in:
parent
91a84d5d0f
commit
62b68a6bf6
1 changed files with 15 additions and 4 deletions
|
@ -1,21 +1,32 @@
|
|||
[Unit]
|
||||
Description=Kibana
|
||||
Documentation=https://www.elastic.co
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=kibana
|
||||
Group=kibana
|
||||
# Load env vars from /etc/default/ and /etc/sysconfig/ if they exist.
|
||||
# Prefixing the path with '-' makes it try to load, but if the file doesn't
|
||||
# exist, it continues onward.
|
||||
|
||||
Environment=KBN_HOME=/usr/share/kibana
|
||||
Environment=KBN_PATH_CONF=/etc/kibana
|
||||
|
||||
EnvironmentFile=-/etc/default/kibana
|
||||
EnvironmentFile=-/etc/sysconfig/kibana
|
||||
|
||||
ExecStart=/usr/share/kibana/bin/kibana
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60
|
||||
WorkingDirectory=/
|
||||
|
||||
WorkingDirectory=/usr/share/kibana
|
||||
|
||||
StandardOutput=journal
|
||||
StandardError=inherit
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue