[systemd-devel] Serial console flow control will stuck systemd

2024-04-11 Thread 细石泉
systemd will write log to console directly when bootup. A unexpected serial console flow control maybe block systemd at embedded systems. I guess systemd doesn't do a good job of initializing the serial console. If a noise XOFF(HEX13) generate when systemd bootup, systemd stucked. Should systemd

[systemd-devel] PropertiesChanged signal not sent unless Subscribe called

2024-04-11 Thread segfault
Hi, I noticed that some functionality of gnome-settings-daemon doesn't work as expected on some systems. I tracked that down to the fact that gnome-settings-daemon subscribes to the org.freedesktop.DBus.Properties.PropertiesChanged signal of org.freedesktop.systemd1 but doesn't call the

Re: [systemd-devel] How to chain services driven by a timer?

2024-04-11 Thread Brian Reichert
On Thu, Apr 11, 2024 at 04:58:05PM +0300, Andrei Borzenkov wrote: > There are no ordering dependencies between your services, so they are > started as soon as possible. if post-rotate.service must be started > after logrotate.service, it needs > > After=logrotate.service > > This is also needed

Re: [systemd-devel] How to chain services driven by a timer?

2024-04-11 Thread Andrei Borzenkov
On Thu, Apr 11, 2024 at 4:17 PM Brian Reichert wrote: > > On Thu, Apr 11, 2024 at 11:16:36AM +0300, Andrei Borzenkov wrote: > > Show full unit definition for both logrotate.service and your service. > > Sure: > > 10-153-68-34:~ # cat /usr/lib/systemd/system/logrotate.service > [Unit] >

Re: [systemd-devel] How to chain services driven by a timer?

2024-04-11 Thread Brian Reichert
On Thu, Apr 11, 2024 at 11:16:36AM +0300, Andrei Borzenkov wrote: > Show full unit definition for both logrotate.service and your service. Sure: 10-153-68-34:~ # cat /usr/lib/systemd/system/logrotate.service [Unit] Description=Rotate log files Documentation=man:logrotate(8) man:logrotate.conf(5)

Re: [systemd-devel] How to chain services driven by a timer?

2024-04-11 Thread Dave Howorth
On Wed, 10 Apr 2024 17:07:36 -0400 Brian Reichert wrote: > Hopefully someone here can assure me this is just due to an artifact > of bookkeeping. I'm specifically trying to avoid doing any work > while logrotate is running. I know it's a bodge, but put a short delay at the start of your

Re: [systemd-devel] How to chain services driven by a timer?

2024-04-11 Thread Andrei Borzenkov
On Thu, Apr 11, 2024 at 12:07 AM Brian Reichert wrote: > > On Wed, Apr 10, 2024 at 01:47:47PM -0600, Dan Nicholson wrote: > > Restarting the timer doesn't make the service run immediately. Are you > > sure logrotate.service has run again since you made this change? Just > > simulate the timer and