Skip to content

Commit

Permalink
Update documentation to advice using 'systemctl edit' to modify the a…
Browse files Browse the repository at this point in the history
…uto-check cycle

Fixes #82
  • Loading branch information
Antiz96 committed Jan 2, 2024
1 parent 28113e8 commit 00731d5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,19 @@ See <https://wiki.archlinux.org/title/Desktop_notifications>

### Modify the auto-check cycle

If you enabled the systemd.timer, the `--check` option is automatically launched at boot and then once every hour.
If you enabled the systemd.timer, the `--check` option is automatically launched at boot and then once per hour.

If you want to change that cycle, you can edit the `/usr/lib/systemd/user/arch-update.timer` file (or `/etc/systemd/user/arch-update.timer` if you installed `arch-update` [from source](#from-source)) and modify the `OnUnitActiveSec` value.
The timer needs to be re-enabled to apply changes, you can do so by running the following command:
If you want to change the check cycle, run `systemctl --user edit arch-update.timer` to create an override configuration for the timer and input the following in it:

```bash
systemctl --user enable --now arch-update.timer
*Example below with a check every 10 minutes*

```text
[Timer]
OnUnitActiveSec=10m
```

See <https://www.freedesktop.org/software/systemd/man/systemd.time.html>
Time units are `s` for seconds, `m` for minutes, `h` for hours, `d` for days...
See <https://www.freedesktop.org/software/systemd/man/systemd.time.html> for more details.

### Do not show package version changes

Expand Down
11 changes: 6 additions & 5 deletions doc/man/arch-update.1
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,16 @@ See https://wiki.archlinux.org/title/Desktop_notifications

.TP
.B Modify the auto-check cycle
.RB "If you enabled the " "systemd.timer" ", the " "--check " "option is automatically launched at boot and then once every hour"
.RB "If you enabled the " "systemd.timer" ", the " "--check " "option is automatically launched at boot and then once per hour."
.br
.RB "If you want to change that cycle, you can edit the " "/usr/lib/systemd/user/arch-update.timer " "(or "/etc/systemd/user/arch-update.timer " if you installed arch-update from source) file and modify the " "OnUnitActiveSec " "value"
.RB "If you want to change the check cycle, run " "systemctl --user edit arch-update.timer " "to create an override configuration for the timer and input the following in it:"
.br
The timer needs to be re-enabled to apply changes, you can do so by running the following command:
.BR [Timer]
.B OnUnitActiveSec=10m
.br
.B systemctl --user enable --now arch-update.timer
.RB "Time units are " "s " "for seconds, " "m " "for minutes, " "h " "for hours, " "d " "for days..."
.br
See https://www.freedesktop.org/software/systemd/man/systemd.time.html
See https://www.freedesktop.org/software/systemd/man/systemd.time.html for more details.

.TP
.B Do not show packages version changes
Expand Down

0 comments on commit 00731d5

Please sign in to comment.