S
S
stasov12019-05-07 13:01:10
*nix-like systems
stasov1, 2019-05-07 13:01:10

How to run rsyslog in docker container via supervisor?

Hello. There are 2 docker containers, each has rsyslog running at container start via supervisor

[program:rsyslogd]
command=rsyslogd -n

One container is the rsyslog server, the second is the client and must send logs to it, there is a connection between the containers, but the logs do not go between them. If you go into each container in turn and restart service rsyslog restart there, then the logs start to go. I don't understand why it doesn't work when started via supervisor? But when you start it manually everything works.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
stasov1, 2019-05-09
@stasov1

in general, I replaced command=rsyslogd -n with command=service rsyslog start and added autostart=true and it worked.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question