mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-21 18:50:38 +03:00
Add systemd service unit for gpupdate
This commit is contained in:
parent
78be6dd627
commit
a76cf296f7
12
gpupdate.service
Normal file
12
gpupdate.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Group policy update for machine
|
||||
After=sssd.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=true
|
||||
ExecStart=/usr/bin/gpupdate
|
||||
StandardOutput=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -36,11 +36,20 @@ mkdir -p \
|
||||
ln -s %python3_sitelibdir/gpoa/main.py \
|
||||
%buildroot%_sbindir/gpoa
|
||||
|
||||
install -Dm0644 %name.service %buildroot%_unitdir/%name.service
|
||||
|
||||
%preun
|
||||
%preun_service gpupdate
|
||||
|
||||
%post
|
||||
%post_service gpupdate
|
||||
|
||||
%files
|
||||
%_sbindir/gpoa
|
||||
%_bindir/gpupdate
|
||||
%attr(755,root,root) %python3_sitelibdir/gpoa/main.py
|
||||
%python3_sitelibdir/gpoa
|
||||
%_unitdir/%name.service
|
||||
|
||||
%changelog
|
||||
* Sun Nov 17 2019 Evgeny Sinelnikov <sin@altlinux.org> 0.0.3-alt1
|
||||
|
Loading…
x
Reference in New Issue
Block a user