-
Notifications
You must be signed in to change notification settings - Fork 8.1k
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Packaging] systemd Service Unit Should Create a PID directory #7759
Comments
There's actually a nicer way of doing this: simply add |
@jbudz is this still relevant? |
Closed by #68262 |
As per #68262 (comment), this still seems relevant. |
I totally forgot about #7759 (comment) by @fholzer above and came up with this approach that works:
This way, any updates to kibana won't actually overwrite the systemd service file, and the pidfile is created and chowned. But then I saw the Nevertheless, At least now I don't have to wait till kibana resolves this properly. |
Kibana version:
kibana-4.5.2-1.x86_64
Server OS version:
Centos 7
Browser version:
n/a
Browser OS version:
n/a
Original install method (e.g. download page, yum, from source, etc.):
yum
Description of the problem including expected versus actual behavior:
Kibana can (optionally, although maybe it should by default?) save out a PID file. The suggested location in the config file is /var/run/kibana.pid, but this is not writable by ordinary users. The usual solution is to create /var/run/kibana, chown it to the kibana user and then write the PID into it.
It's important to create this directory each time the service is started because on Redhat systems (and others) /var/run is emptied at system boot time, so any directories are lost.
Steps to reproduce:
Errors in browser console (if relevant):
n/a
Provide logs and/or server output (if relevant):
n/a
A solution is to add two ExecStartPre lines to the Service Unit file, making it:
The text was updated successfully, but these errors were encountered: