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

improve safety of -o option #4266

Open
davidelang opened this issue Apr 29, 2020 · 0 comments
Open

improve safety of -o option #4266

davidelang opened this issue Apr 29, 2020 · 0 comments

Comments

@davidelang
Copy link
Contributor

Expected behavior

rsyslog should not overwrite it's own config file

Actual behavior

I'm not sure exactly how, but I had an instance where a scripted restart ended up overwriting /etc/rsyslog.conf

Steps to reproduce the behavior

not sure
in /etc/init.d/rsyslog -o /etc/rsyslog.conf.generated was added to the startup line on centos.
something happened with an indirect restart (system restart or *ctl restart type of thing) and /etc/rsyslog.conf was overwritten and looks like it was generated by -o and is empty

make sure that we aren't overwriting the config file we are reading

Environment

  • rsyslog version:
  • platform:
  • for configuration questions/issues, include rsyslog.conf and included config files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant