Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Persistant directories under /var/run

807557Dec 15 2006 — edited Dec 18 2006
Hi All,

Nice and simple one (I hope). I'm running a clustered MySQL service on two nodes, and I'd like for the pid files to be stored under /var/run.

As this service runs as the mysql user, I have had to create a subdirectory /var/run/mysql owned by this user - however, this vanishes after a reboot, which means I have to remember to recreate it if I reboot a node.

Is there a startup script (like /etc/init.d/boot.local, in some Linuxes) where I can shove the commands to recreate the required directory, or is there a better way of making this directory (and it's permissions) persistant?

Thanks in advance,

Pete
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 13 2007
Added on Dec 15 2006
4 comments
410 views