Prev: Mplayer - can it play audio cd's......... solved....
Next: LVM snapshots are not backups (was: Re: Virtualization - what do You recommend?)
From: Richard Hector on 5 Feb 2010 17:50 On Sat, 2010-02-06 at 07:39 +1030, Arthur Marsh wrote: > Last question is, what guarantee is there that the device file will have > been generated (assuming that the USB drive is present) before the > @reboot cron event is run? The standard mount script is run in runlevel S, which is entered before the numbered runlevels which is where cron is started. So I'm guessing if the device is there in time to be mounted from fstab, it will be there before cron runs. Richard -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Arthur Marsh on 5 Feb 2010 20:50
Richard Hector wrote, on 06/02/10 09:07: > On Sat, 2010-02-06 at 07:39 +1030, Arthur Marsh wrote: > >> Last question is, what guarantee is there that the device file will have >> been generated (assuming that the USB drive is present) before the >> @reboot cron event is run? > > The standard mount script is run in runlevel S, which is entered before > the numbered runlevels which is where cron is started. So I'm guessing > if the device is there in time to be mounted from fstab, it will be > there before cron runs. > > Richard Thanks, that turned out to be the case and appears to work well. Arthur. -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org |