...
$ sudo ls -la /proc/$(pidof rsyslogd)/fd
totale 0
dr-x------ 2 root-a-a root-a-a-a 0 dic 23 08:54 .
dr-xr-xr-x 9 syslog syslog-a 0 dic 23 08:54 ..
lr-x------ 1 root-a-a root-a-a 64 dic 23 20:54 0 -> /dev/null
l-wx------ 1 root-a-a root-a-a 64 dic 23 20:54 1 -> /dev/null
l-wx------ 1 root-a-a root-a-a 64 dic 23 20:54 2 -> /dev/null
lrwx------ 1 root-a-a root-a-a 64 dic 23 08:54 3 -> 'socket:[19540]' lr-x------ 1 root-a-a root-a-a 64 dic 23 20:54 4 -> /dev/urandom
lr-x------ 1 root-a-a root-a-a 64 dic 23 20:54 5 -> /proc/kmsg
lrwx------ 1 root-a-a root-a-a 64 dic 23 20:54 6 -> 'socket:[29286]' l-wx------ 1 root-a-a root-a-a 64 dic 23 20:54 7 -> /var/log/syslog l-wx------ 1 root-a-a root-a-a 64 dic 23 20:54 8 -> /var/log/kern.log l-wx------ 1 root-a-a root-a-a 64 dic 23 20:54 9 -> /var/log/auth.log
$ netstat -x | grep 19540
unix-a 2-a-a-a-a-a [ ]-a-a-a-a-a-a-a-a DGRAM-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a 19540
/run/systemd/journal/syslog
$ cat docker-compose.override.yml
services:
-a-a-a web:
-a-a-a-a-a-a-a image: php:apache
-a-a-a-a-a-a-a extra_hosts:
-a-a-a-a-a-a-a-a-a-a-a --a "host1:192.168.1.15"
-a-a-a-a-a-a-a logging:
-a-a-a-a-a-a-a-a-a-a-a driver: syslog
-a-a-a-a-a-a-a-a-a-a-a options:
-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a syslog-address: "udp://host1:19540"
-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a tag: "{{.Name}}/{{.ID}}"
$ docker-compose run web php -r 'syslog(LOG_ERR, "ABC") && print("OK!!!\n");'
WARNING: Found orphan containers (window-resources_window-resources_1)
for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean
it up.
Creating window-resources_web_run ... done
OK!!!
$ journalctl -n | grep ABC || echo NOT FOUND
NOT FOUND
Why?
Configure docker is generally thought as off topic as it's nothing to do with PHP.
Il 24/12/22 23:29, J.O. Aho ha scritto:
Configure docker is generally thought as off topic as it's nothing to
do with PHP.
A newsgroup suitable for talking about docker configuration?
On 28/12/2022 13.13, Custom Log wrote:--- Synchronet 3.21d-Linux NewsLink 1.2
Il 24/12/22 23:29, J.O. Aho ha scritto:
Configure docker is generally thought as off topic as it's nothing to
do with PHP.
A newsgroup suitable for talking about docker configuration?They supply unpaid "support" over web based forums, as most of those
people are born after 2k and only know how a browser works, https://forums.docker.com
--
//Aho
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 01:39:25 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
10 files (20,373K bytes) |
| Messages: | 264,188 |