# SLES 12 /var/run

**URL:** <https://forums.suse.com/t/sles-12-var-run/27188>\
**Category:** SLES Configure-Administer\
**Created:** [June 24, 2015, 6:55pm UTC](https://forums.suse.com/t/sles-12-var-run/27188 "2015-06-24T18:55:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cisaksen](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@cisaksen](https://forums.suse.com/u/cisaksen)\
**Post date:** [June 24, 2015, 6:55pm UTC](https://forums.suse.com/t/sles-12-var-run/27188/1 "2015-06-24T18:55:09Z")

</div>

Couple of Questions:

1. why was the run dir moved from /var/run to /run ? Also I noticed that the permissions will reset on a reboot for this dir if I change them (debugging ) Any other Dir’s do this ?

2. I have setup a service for a compiled version of memcached (as suse doesn’t provide it) and I have the PID set for /var/run/memcached which is actually /run/memcached that I created. Now on a reboot this dir disappears - what’s going on ?

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [June 24, 2015, 7:25pm UTC](https://forums.suse.com/t/sles-12-var-run/27188/2 "2015-06-24T19:25:05Z")

</div>

1. Not sure why the change, but…

2. /run is a tmpfs (temporary) filesystem, kind of like /dev/shm or  
/sys/fs/cgroup on my SLES 12 box. Since /var/run is a symlink to /run, it  
to is tmpfs which basically means it’s a RAM drive, thus lost on a reboot.

My guess is that you should either recreate that directory when needed, or  
just ignore the memcahed directory entirely and put the PID directly in  
/run or /var/run directly. You could also put the PID somewhere else,  
like /var/pid (does not exist on my box, but could).

This all assumes you do not create a native systemd service definition for  
memcached so that everything is handled that way.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [June 26, 2015, 12:36am UTC](https://forums.suse.com/t/sles-12-var-run/27188/3 "2015-06-26T00:36:53Z")

</div>

On 06/24/2015 11:04 AM, cisaksen wrote:[color=blue]

> Couple of Questions:
> 
> 1. why was the run dir moved from /var/run to /run ? Also I noticed  
> that the permissions will reset on a reboot for this dir if I change  
> them (debugging ) Any other Dir’s do this ?
> 
> 2. I have setup a service for a compiled version of memcached (as suse  
> doesn’t provide it) and I have the PID set for /var/run/memcached which  
> is actually /run/memcached that I created. Now on a reboot this dir  
> disappears - what’s going on ?
> 
> [/color]

Info on the change…

[https://lists.fedoraproject.org/pipermail/devel/2011-March/150031.html](https://lists.fedoraproject.org/pipermail/devel/2011-March/150031.html)

(you could also say systemd… if you like)
