[systemd-devel] Guidance on automount/unmount for external powered devices

Patrick O'Callaghan pocallaghan at gmail.com
Thu Mar 11 12:13:45 UTC 2021


On Thu, 2021-03-11 at 12:08 +0000, Dave Howorth wrote:
> On Thu, 11 Mar 2021 11:00:04 +0000
> Patrick O'Callaghan <pocallaghan at gmail.com> wrote:
> > Unfortunately a system reboot always leaves it in the 'powered up and
> > present in /dev/md' state, so I have to manually run the power-down
> > script every time I reboot. This is inelegant.
> 
> There may be better ways, but could you use an @reboot crontab entry
> containing something like
> 
> sleep 30 && do-whatever-you-need-to-issue-the-power-down

I wasn't aware of the @reboot crontab option. Certainly a viable
alternative, thanks.

poc



More information about the systemd-devel mailing list