LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-23-2022, 12:44 PM   #1
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Rep: Reputation: 68
/var/run and /run in Slackware


I have noticed that sometime during the past year or so a bunch of startup scripts in Slackware have started to use /run instead of /var/run - but others still use /var/run. Is it all going to move to using /run at some point, or is there some other convention behind it? I am trying to make sense of what the system is, as I have a few customised rc.* scripts of my own, and I would like to keep them in sync with the conventions the rest of Slackware uses.
 
Old 04-23-2022, 01:08 PM   #2
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,505

Rep: Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320
Quote:
Originally Posted by xj25vm View Post
I have noticed that sometime during the past year or so a bunch of startup scripts in Slackware have started to use /run instead of /var/run - but others still use /var/run. Is it all going to move to using /run at some point, or is there some other convention behind it? I am trying to make sense of what the system is, as I have a few customised rc.* scripts of my own, and I would like to keep them in sync with the conventions the rest of Slackware uses.
In the Slackware 15.0 and beyond, /var/run is a symlink pointing to /run , which is de default state tracker folder. Previously, /var/run was a bind mounting of /run, but this started in introducing some mysterious issues in Plasma5 and probably other applications, so Slackware ended with adopting the solution general used by other distributions - this symlink.

In other words, /var/run is provided only as legacy compatibility.

I recommend you to use /run to store the PID files in your scripts.

Last edited by LuckyCyborg; 04-23-2022 at 02:34 PM.
 
9 members found this post helpful.
Old 04-24-2022, 05:21 AM   #3
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Original Poster
Rep: Reputation: 68
Thank you - that clears things up!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] get var value when var name is part of another var bilyboy65 Linux - Newbie 9 10-21-2012 09:32 AM
/var/log/wtmp vs. /var/run/utmp masenko703 Linux - Newbie 4 10-05-2012 03:41 AM
notation difference: var=`command` and var=$(command) ? ldp Linux - General 8 06-26-2006 06:32 PM
Moving /var/adm and /var/lib - why does it hurt? J_Szucs Linux - General 1 09-15-2004 06:46 PM
rm cannot remove /var/run/atd.pid and /var/run/xdm.pid danishmr Linux - Software 1 05-04-2004 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration