Skip to content
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

[FR] EL7/8 RPM log dir and restart on failure #809

Open
evdevk opened this issue Nov 27, 2023 · 0 comments
Open

[FR] EL7/8 RPM log dir and restart on failure #809

evdevk opened this issue Nov 27, 2023 · 0 comments

Comments

@evdevk
Copy link

evdevk commented Nov 27, 2023

Clean installation carbonapi centos 8 and red hat 8.5. Checked out on EL7 and EL8 rpm.

Problems:

  1. Carbonapi after install can't start coz no logs directory. Have to create it manually.
  2. On any OOM or other bugs carbonapi won't auto restart which is not so good for any frontends. Have to override systemd manually.

It would be awesome to decrease manual impact in future rpms, so my suggestions:

  1. in systemd unit add restart on-failure or always
[Service]
Restart=on-failure
  1. in rpm bulder add 2 simple commands:
mkdir -p /var/log/carbonapi/
chown -R carbon:carbon /var/log/carbonapi/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant