Thread View: linux.debian.bugs.dist
2 messages
2 total messages
Started by Marc Haber
Mon, 16 Nov 2026 17:00
Bug#1113769: molly-guard: Can't reboot or shutdown in a cron job
Author: Marc Haber
Date: Mon, 16 Nov 2026 17:00
Date: Mon, 16 Nov 2026 17:00
33 lines
2824 bytes
2824 bytes
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
Bug#1113769: molly-guard: Can't reboot or shutdown in a cron job
Author: Marc Haber
Date: Mon, 16 Nov 2026 17:10
Date: Mon, 16 Nov 2026 17:10
10 lines
2506 bytes
2506 bytes
On Mon, Nov 16, 2026 at 05:54:06PM +0100, Marc Haber wrote: > 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. After revisiting this again, would calling /usr/sbin/reboot.no-molly-guard from cron work for you? Greetings Marc
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads