Spawn rsyslog from neonvm (#11111)

then configure it from compute_ctl.
to make it more robust in case of restarts and rsyslogd crashes.
This commit is contained in:
Anastasia Lubennikova
2025-03-06 19:14:19 +00:00
committed by GitHub
parent 3bb318a295
commit 3dee29eb00
6 changed files with 60 additions and 34 deletions

View File

@@ -1980,12 +1980,10 @@ COPY --from=sql_exporter_preprocessor --chmod=0644 /home/nonroot/compute/etc/neo
RUN echo '/usr/local/lib' >> /etc/ld.so.conf && /sbin/ldconfig
# rsyslog config permissions
RUN chown postgres:postgres /etc/rsyslog.conf && \
touch /etc/compute_rsyslog.conf && \
chown -R postgres:postgres /etc/compute_rsyslog.conf && \
# directory for rsyslogd pid file
mkdir /var/run/rsyslogd && \
chown -R postgres:postgres /var/run/rsyslogd
# directory for rsyslogd pid file
RUN mkdir /var/run/rsyslogd && \
chown -R postgres:postgres /var/run/rsyslogd && \
chown -R postgres:postgres /etc/rsyslog.d/
ENV LANG=en_US.utf8