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

Nested variables in rsyslog_default.erb cause failure in rsyslog startup #313

Open
madecto opened this issue May 13, 2020 · 0 comments
Open

Comments

@madecto
Copy link

madecto commented May 13, 2020

Hi,
it appears the default installation on Amazon AMIs creates an /etc/sysconfig/rsyslog file with the following content:

# File is managed by puppet

RSYSLOGD_OPTIONS=""
# CentOS, RedHat, Fedora
SYSLOGD_OPTIONS="${RSYSLOGD_OPTIONS}"

derived from puppet-rsyslog/templates/rsyslog_default.erb.

Upon service startup systemd fails to start the daemon with the following logs:

May 13 18:20:30 ip-172-31-32-117.eu-central-1.compute.internal systemd[1]: Starting System Logging Service...
May 13 18:20:30 ip-172-31-32-117.eu-central-1.compute.internal systemd[1]: rsyslog.service: main process exited, code=exited, status=1/FAILURE
May 13 18:20:30 ip-172-31-32-117.eu-central-1.compute.internal systemd[1]: Failed to start System Logging Service.
May 13 18:20:30 ip-172-31-32-117.eu-central-1.compute.internal systemd[1]: Unit rsyslog.service entered failed state.
May 13 18:20:30 ip-172-31-32-117.eu-central-1.compute.internal systemd[1]: rsyslog.service failed.
May 13 18:20:30 ip-172-31-32-117.eu-central-1.compute.internal systemd[1]: rsyslog.service holdoff time over, scheduling restart.

Starting rsyslogd from the shell with no reference to the rsyslog_default or changing SYSLOGD_OPTIONS="${RSYSLOGD_OPTIONS}" to SYSLOGD_OPTIONS="" works.

It is my understanding that nesting variables breaks something in the service unit startup while on systems still free of systemd like CentOS 6 everything appears to be working fine.

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