Re: [systemd-devel] : How to modify systemd so that the NTP function is disabled when systemd is first started?

2020-04-24 Thread www
hi Michal & Kevin, I find that just shutting down *timesync* service can't solve the problem. Build time also affects system time. My testing process is as follows: 1. systemctl disable systemd-timesyncd systemctl mask systemd-timesyncd 2. timedatectl set-time "2001-11-30 17:36:46" --

Re: [systemd-devel] If systemd service fails how to get a dependency service to fail also

2020-04-24 Thread Andrei Borzenkov
24.04.2020 16:57, John пишет: > I'd like to have systemd (user mode) call a bash script with different > tokens under two conditions: > 1) When the user starts/stops a service (token would be either "sync" > or "unsync") > 2) When a timer tells it to run (token would be "sync") > > Thus far, I hav

[systemd-devel] If systemd service fails how to get a dependency service to fail also

2020-04-24 Thread John
I'd like to have systemd (user mode) call a bash script with different tokens under two conditions: 1) When the user starts/stops a service (token would be either "sync" or "unsync") 2) When a timer tells it to run (token would be "sync") Thus far, I have been accomplishing these with 1 service an