in reply to Re^4: Preventing multiple instances
in thread Preventing multiple instances
Can you explain why you chose /var/memdir and not /tmp/memdir as it is by its very nature temporary.I'm guessing this is a design decision, not something that is going to be explained in the documentation.
/tmp is often already on a ramdisk-like virtual filesystem, e.g. tmpfs. If not, some boot script cleans up tmp. So /tmp/memdir is gone after a reboot. /var is on persistent storage, so /var/memdir will survive a reboot.
Also, any reason to set the number of blocks to zero?This documentation doesn't cover the size=1M 0 0 parameter and I cannot find reference to it in the links. I asked because when I looked up what these parameters do I found advice that "It is generally unwise to mount with such options" in this article.
/etc/fstab is structured, six fields separated by whitespace. This implies that no field can contain whitespace. The fields are (in order):
"size=1M" is part of the mount options in field 4, the two zeros after that are fields 5 and 6.
stevieb proposed to add this to fstab:
tmpfs /var/memdir tmpfs nodev,nosuid,size=1M 0 0
Split at whitespace and compare with the field descriptions.
Alexander
|
|---|