1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-22 02:50:32 +03:00

Added TimeoutSec to systemd units

It is expected that systemd will start gpupdate every hour to update
and apply Group Policies. TimeoutSec allows to ensure that gpupdate
will not take more than 50 minutes to finish in order to allow new
instance to be started.
This commit is contained in:
Игорь Чудов 2020-01-15 14:29:12 +04:00
parent 6c64055d1f
commit 0e49856983
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ Description=gpupdate in userspace
Environment="PATH=/bin:/sbin:/usr/bin:/usr/sbin"
Type=notify
WatchdogSec=3600
TimeoutSec=3000
Restart=always
ExecStart=/usr/sbin/gpoa

View File

@ -6,6 +6,7 @@ After=sssd.service
Environment="PATH=/bin:/sbin:/usr/bin:/usr/sbin"
Type=notify
WatchdogSec=3600
TimeoutSec=3000
Restart=always
ExecStart=/usr/bin/gpupdate
StandardOutput=journal