Hi,

I have a issue when trying to run bash scripts from monit on Trixie that 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 != 0 then alert

The script is accessing some ressources from /root which seems to be impossible when being executed by monit:

/srv/service/monit/check-backup.sh: line 5: /root/.local/bin/borgmatic: 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 what's wrong and would appreciate any hint what I am doing wrong.


Kind regards,
Christoph


Reply via email to