Skip to content

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

@evdevk

Description

@evdevk

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/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions