Control: tags -1 thanks On Tue, Sep 02, 2025 at 11:37:49AM +0100, Ian Chard wrote: > molly-guard fails to reboot or shutdown if I call these commands from a cron > job. > For example, if I have > > 0 7 * * * /usr/sbin/reboot > > in root's crontab, the reboot doesn't happen, and root gets this email: > > > Subject: Cron <root@cupboard-bridge> /usr/sbin/reboot > > > > E: not a regular file: > > Before upgrading to trixie, this worked and the reboot just happened silently.
I guess this is caused by some change in our reboot mechanisms. I am not sure whether it would be possible to accomodate your request without requiring changes to your setup. What I suggest is: - we extend the /etc/molly-guard/run.d/ mechanism so that a script can cause an immediate "pass" of the command - we ship a run.d snipped that will issue such an immediate "pass" if a certain environment variable is set or a marker file exists - you set that environment variable in your cron job. Would that be acceptable for you? Greetings Marc

