Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Graceful shutdown with cron job #1306
I am trying to schedule rockstor to shutdown at 4:00 a.m. every morning. I currently use a cronjob: "shutdown -h now
Hi @gkellar, actually Rockstor doesn't have a "cron manager" for tasks different from web ui tasks (snapshots, scrub and replica) - We'll add a cron manager asap because it's a useful feature requested by other users too
Actually Rockstor web ui shutdown = shutdown -h now, so that should be ok
@gkellar @MFlyer I have seen Rockstor's shutdown, which as @MFlyer points out is simply a "shutdown -h now", hang at a very late stage but only when installed on USB, when the same hw was used but with a non USB boot device this occasional failure to fully shutdown was no longer observed.
My own experience of non clean shutdowns ie no actual power off due to kernel panic or unmount issues were with Rockstor installed on SanDisk Extreme USB 3.0 32GB.
Linking to our open issue for "Custom Cron Jobs via WebGUI":