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

Can't understand how logs and tty are working #178

Open
ptempier opened this issue Apr 12, 2024 · 0 comments
Open

Can't understand how logs and tty are working #178

ptempier opened this issue Apr 12, 2024 · 0 comments

Comments

@ptempier
Copy link

Hello

I tried with a rockylinux container on a fedora host
I have "few" logs on the container logs

so i hacked something to get all the service logs file content to proc 1 fd 1 using rsyslog
I added logrotate and cronie, so i get an alternative for time and can copytruncate and compress service logs
so now i have "few" logs duplicated as i get them from both docker-systemctl-replacement and from rsyslog

I realized that for all the services installed via rpm, the logs are not duplicated , but they are if i write the service myself
and that if i write a neofetch service (to get some info on container start) and do
cat /usr/lib/systemd/system/neofetch.service > /usr/lib/systemd/system/nginx.service

When i do :
systemctl reload
systemctl restart neofetch
systemctl restart nginx

The logs are duplicated for neofetch but not for nginx
So it s really for any service file which was installed by the system behaves differently than if i installed it myself.
Even if the content is the same ....

Please suggest what might be going on.

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