Improve documentation about notifier per-command with examples
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
15e4775679
commit
9c9dfee661
1 changed files with 14 additions and 2 deletions
16
README.md
16
README.md
|
@ -52,6 +52,12 @@ Server = https://aur.myservermanager.com
|
|||
|
||||
## Usage
|
||||
|
||||
Services and scripts don't depend on each other, except for `notifier` which is commonly used. See more about `notifier` in the next section. All scripts include hints that they can be combined (out-commented line in service files for `systemd_failure_notify@.service` for example).
|
||||
|
||||
Examples are given inside `usr/share/doc/system-helpers` and *man pages* are also available.
|
||||
|
||||
### Making use of notifier
|
||||
|
||||
Scripts make heavy use the bundled **notifier** script (see `man notifier`) which should be configured properly, e.g. add a `/etc/notifier.conf`:
|
||||
|
||||
```shell
|
||||
|
@ -75,10 +81,16 @@ Environment="NOTIFIER_MAIL_ADDRESS=another-mail-different-from-your-global-confi
|
|||
# ...
|
||||
```
|
||||
|
||||
Another option is to set those inside the respective config files of another script. Let's have an example with the `check_updates` script.
|
||||
|
||||
Otherwise, services and scripts don't depend on each other, but have hints that they can be combined (out-commented line in service files for `systemd_failure_notify@.service` for example).
|
||||
```shell
|
||||
# /etc/check_updates.conf
|
||||
NOTIFIER_GOTIFY_ENABLED=false
|
||||
NOTIFIER_MAIL_ENABLED=true
|
||||
NOTIFIER_MAIL_ADDRESS=updatemail@domain.tld
|
||||
```
|
||||
|
||||
Examples are given inside `usr/share/doc/system-helpers` and *man pages* are also available.
|
||||
This will not send gotify messages for `check_updates` and send a mail to a different address `updatemail@domain.tld`.
|
||||
|
||||
## FAQ
|
||||
|
||||
|
|
Loading…
Reference in a new issue