Skip to content

pkgadmin: Use systemd.timer instead of cron #346

Merged
merged 1 commit into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
7 changes: 7 additions & 0 deletions pkgadmin/pkgadmin-update.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Timer]
OnCalendar=2:00
RandomizedDelaySec=2 hours
Persistent=true

[Install]
WantedBy=timers.target