tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Creating /var/shm as a symlink during startup



Would that play nicely with

	per_user_tmp=YES

? If it's the first time booting after adding it to rc.conf, will the
link '/somedir/@ruid' be created before trying to create .shm?


On Fri, 6 Nov 2015 20:31:20 +0100
Martin Husemann <martin%duskware.de@localhost> wrote:

> I would like to commit the patch below.
> 
> It is usefull for memory restricted systems where you only want one
> tmpfs (with a single, reasonable small limit) and want to share that
> tmpfs for both /tmp and /var/shm.
> 
> With the patch, it is as easy as setting
> 
> 	var_shm_symlink="/tmp/.shm"
> 
> in /etc/rc.conf and making /tmp a tmpfs in /etc/fstab.
> 
> Any objections? Better ideas?
> 
> Martin


-- 
Have a good day,
Alex


Home | Main Index | Thread Index | Old Index