Skip to content

Commit

Permalink
pkgadmin: Use systemd.timer instead of cron
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Sep 10, 2023
1 parent 4c9704f commit a2ada66
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ install_exec prun/ptype "$DESTDIR$usr_bindir/pt
install_exec prun/pman "$DESTDIR$usr_bindir/pman"
install_exec put_websafe/put_websafe "$DESTDIR$usrlocal_bindir/put_websafe"
install_exec pkgadmin/pkgadmin "$DESTDIR$usr_sbindir/pkgadmin"
install_cron pkgadmin/crond-pkgadmin-update "$DESTDIR$crond_dir/pkgadmin-update"
install_data pkgadmin/pkgadmin-update.service "$DESTDIR$systemdunitdir/pkgadmin-update.service"
install_data pkgadmin/pkgadmin-update.timer "$DESTDIR$systemdunitdir/pkgadmin-update.timer"
install_exec mxraid/mxraid "$DESTDIR$usr_sbindir/mxraid"
install_exec mxraid/mxraid_assemble "$DESTDIR$usr_sbindir/mxraid_assemble"
install_data mxraid/mxraid.service "$DESTDIR$systemdunitdir/mxraid.service"
Expand Down
2 changes: 0 additions & 2 deletions pkgadmin/crond-pkgadmin-update

This file was deleted.

2 changes: 2 additions & 0 deletions pkgadmin/pkgadmin-update.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Service]
ExecStart=pkgadmin update
9 changes: 9 additions & 0 deletions pkgadmin/pkgadmin-update.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Timer]

OnCalendar=22:00
AccuracySec=1 hour
RandomizedDelaySec=8 hours
Persistent=true

[Install]
WantedBy=multiuser.target

0 comments on commit a2ada66

Please sign in to comment.