1
0
Fork 0
mirror of https://github.com/Luzifer/arch-update.git synced 2024-12-20 11:01:16 +00:00

Add service / timer

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-03-06 23:48:04 +01:00
parent eab2e0e80d
commit 6bdd4006b7
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
3 changed files with 26 additions and 2 deletions

View file

@ -8,11 +8,19 @@ arch=('any')
url="https://gist.github.com/Luzifer/493cea96052493ed70d4cdd572db32f0"
license=(Apache)
depends=(pacman-contrib)
source=(arch_update.sh)
sha512sums=('609794ba2c80e70f7b32fc5323e0897d643a836af2899916c72d5727a0afd8b41341d8ab7d4b9fa7a06c10a9803a34a9bb380c92f15276e2dc459652b6b464d3')
source=(
arch_update.sh
arch-update.service
arch-update.timer
)
sha512sums=('609794ba2c80e70f7b32fc5323e0897d643a836af2899916c72d5727a0afd8b41341d8ab7d4b9fa7a06c10a9803a34a9bb380c92f15276e2dc459652b6b464d3'
'384a9fc9c7f43bd7e9ec9274b5e930e7e9e3dcea088f524201f0b359f33e470b9b120b6c261b82b2d484d7af937eb67ba2cdf7a0bda2ca424338da03e008a716'
'f9b62fbc31d963525340c408ddacf671c54d9874b4decd1c84286b2a000ef488a85d738f7a3d83db34e9dd98baa84389aff837bdf68531712ba9eaa7a8d762bd')
package() {
install -Dm755 "${srcdir}/arch_update.sh" "${pkgdir}/usr/bin/arch_update"
install -Dm755 "${srcdir}/arch-update.service" "${pkgdir}/usr/lib/systemd/system/arch-update.service"
install -Dm755 "${srcdir}/arch-update.timer" "${pkgdir}/usr/lib/systemd/system/arch-update.timer"
}
pkgver() {

7
arch-update.service Normal file
View file

@ -0,0 +1,7 @@
[Unit]
Description=Execute arch-updates
[Service]
Type=oneshot
ExecStart=/usr/bin/arch_update

9
arch-update.timer Normal file
View file

@ -0,0 +1,9 @@
[Unit]
Description=Execute arch-updates
[Timer]
OnCalendar=04:00
RandomizedDelaySec=1800
[Install]
WantedBy=timers.target