Mounting partitions
Alex Smith
alex at alex-smith.me.uk
Fri Mar 16 19:02:27 GMT 2007
Matthias Urlichs wrote:
> Hi,
>
> Alex Smith:
>> initctl set checked-filesystems "$checked-filesystems $BLOCKDEV"
>>
> Umm, that would cause a race condition if ever two file systems did that
> operation at the same time.
>
> You'll want to use an "append" operation for this kind of thing.
> Or, even better, a list-style variable you can add and remove things
> to/from.
Yes, you're right there. So an initctl set would set the initial value
of the variable. Then an initctl append would append to the variable and
set it if it isn't already set.
--
Alex Smith
Frugalware Linux developer - http://www.frugalware.org
More information about the upstart-devel
mailing list