Running bash scripts on Trixie
"Christoph Wagner" <[email protected]> Sun, 23 Nov 2025 12:38:26 +0000
| Newsgroups | gmane.comp.monitoring.monit.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have a issue when trying to run bash scripts from monit on Trixie that=20
work just fine on Bookworm.
The script configuration is really simple:
check program backup path /srv/service/monit/check-backup.sh
with timeout 1800 seconds
every "0-5 15,17 * * *"
if status !=3D 0 then alert
The script is accessing some ressources from /root which seems to be=20
impossible when being executed by monit:
/srv/service/monit/check-backup.sh: line 5: /root/.local/bin/borgmatic:=20
No such file or directory
Running the script from a ssh session works just fine.
I am probably missing something really stupid but I cannot figure out=20
what's wrong and would appreciate any hint what I am doing wrong.
Kind regards,
Christoph