Re: [systemd-devel] Antw: [EXT] I/O error on "systemctl kill -s HUP rsyslog.service"

2020-08-12 Thread Harald Dunkel
On 8/12/20 2:16 PM, Andrei Borzenkov wrote: 12.08.2020 14:03, Harald Dunkel пишет: See attachment. Hope this helps Harri 1 openat(AT_FDCWD, "/sys/fs/cgroup/unified/system.slice/rsyslog.service/cgroup.procs", O_RDONLY|O_CLOEXEC) = 24 1 read(24, "0\n1544456\n", 4096)= 10 kerne

Re: [systemd-devel] ConditionPathExists vs mount unit

2020-08-12 Thread Böszörményi Zoltán
2020. 08. 10. 20:12 keltezéssel, Böszörményi Zoltán írta: 2020. 08. 10. 20:08 keltezéssel, Lennart Poettering írta: On Mo, 10.08.20 19:46, Böszörményi Zoltán (zbos...@pr.hu) wrote: Is there a way to describe optional mounts via such Conditions* options? No. .mount units automatically gain d

Re: [systemd-devel] protecting sshd against forkbombs, excessive memory usage by other processes

2020-08-12 Thread Tomasz Chmielewski
On 2020-08-12 22:07, Mantas Mikulėnas wrote: On Wed, Aug 12, 2020 at 7:03 AM Tomasz Chmielewski wrote: I've made a mistake and have executed a forkbomb-like task. Almost immediately, the system became unresponsive, ssh session froze or were very slow to output even single characters; some ssh

Re: [systemd-devel] protecting sshd against forkbombs, excessive memory usage by other processes

2020-08-12 Thread Mantas Mikulėnas
On Wed, Aug 12, 2020 at 7:03 AM Tomasz Chmielewski wrote: > I've made a mistake and have executed a forkbomb-like task. Almost > immediately, the system became unresponsive, ssh session froze or were > very slow to output even single characters; some ssh sessions timed out > and were disconnected

Re: [systemd-devel] Antw: [EXT] I/O error on "systemctl kill -s HUP rsyslog.service"

2020-08-12 Thread Andrei Borzenkov
12.08.2020 14:03, Harald Dunkel пишет: > See attachment. Hope this helps > Harri > 1 openat(AT_FDCWD, > "/sys/fs/cgroup/unified/system.slice/rsyslog.service/cgroup.procs", > O_RDONLY|O_CLOEXEC) = 24 > 1 read(24, "0\n1544456\n", 4096)= 10 kernel returns "0" as process number in thi

Re: [systemd-devel] Antw: [EXT] I/O error on "systemctl kill -s HUP rsyslog.service"

2020-08-12 Thread Lennart Poettering
On Mi, 12.08.20 13:03, Harald Dunkel (harald.dun...@aixigo.com) wrote: > 1 getuid() = 0 > 1 kill(1544456, SIGHUP) = 0 So, first, systemd tries and succeeds to kill the main process of your service with SIGHUP. So far far so good. > 1 openat(AT_FDC

Re: [systemd-devel] Antw: [EXT] I/O error on "systemctl kill -s HUP rsyslog.service"

2020-08-12 Thread Harald Dunkel
On 8/12/20 1:03 PM, Harald Dunkel wrote: See attachment. Hope this helps Harri PS: # ls -al /sys/fs/cgroup/unified/system.slice/rsyslog.service total 0 drwxr-xr-x 2 root root 0 Jun 20 17:40 . drwxr-xr-x 53 root root 0 Aug 12 13:30 .. -r--r--r-- 1 root root 0 Aug 12 13:05 cgroup.controllers -

Re: [systemd-devel] Antw: [EXT] I/O error on "systemctl kill -s HUP rsyslog.service"

2020-08-12 Thread Harald Dunkel
See attachment. Hope this helps Harri 1 epoll_wait(4, [{EPOLLIN, {u32=3589379376, u64=94720503158064}}], 36, -1) = 1 1 clock_gettime(CLOCK_BOOTTIME, {tv_sec=4562316, tv_nsec=425983895}) = 0 1 recvmsg(29, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="WATCHDOG=1\n", iov_len=4096}]

Re: [systemd-devel] Antw: [EXT] I/O error on "systemctl kill -s HUP rsyslog.service"

2020-08-12 Thread Andrei Borzenkov
12.08.2020 13:04, Harald Dunkel пишет: > On 8/12/20 10:32 AM, Ulrich Windl wrote: >> >> As you found out the details already, maybe you could have added some >> strace >> output, especially after the kill() is returning... >> > > See attachment. Hope this helps Not really. We already know that sy

Re: [systemd-devel] Antw: [EXT] I/O error on "systemctl kill -s HUP rsyslog.service"

2020-08-12 Thread Harald Dunkel
On 8/12/20 10:32 AM, Ulrich Windl wrote: As you found out the details already, maybe you could have added some strace output, especially after the kill() is returning... See attachment. Hope this helps Harri 44504 execve("/bin/systemctl", ["systemctl", "kill", "-s", "HUP", "rsyslog.service"]

[systemd-devel] Antw: [EXT] I/O error on "systemctl kill -s HUP rsyslog.service"

2020-08-12 Thread Ulrich Windl
>>> Harald Dunkel schrieb am 11.08.2020 um 14:14 in Nachricht <929f6586-6e0c-4088-b5fc-91de5a305...@aixigo.com>: > Hi folks, > > sending a HUP to rsyslog using the "systemd way" gives me an error: > > # systemctl kill ‑s HUP rsyslog.service > Failed to kill unit rsyslog.service: Inpu