Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Is /var/run a symlink to /run in gentoo?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 143

PostPosted: Fri Oct 15, 2021 3:08 am    Post subject: [Solved] Is /var/run a symlink to /run in gentoo? Reply with quote

I'm experiencing issues with several daemons that get killed by systemd because it fails to find a file at /run/<service>.pid whereas the daemon tries to write to /var/run/<service>.pid. I'm trying to figure out if these are just bugs or if I inadvertently caused this by moving /var/run to a subvolume (to exclude volatile data from snapshots), thus inadvertently destroying the symlink (if it was one in the first place).

Last edited by Gooberpatrol66 on Fri Oct 15, 2021 4:52 am; edited 1 time in total
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Fri Oct 15, 2021 3:19 am    Post subject: Reply with quote

Yes, /var/run is (should be) a symlink to /run.

I don't think moving things around to avoid them being part of your snapshot is the right approach. If you don't want something in your snapshot, exclude it explicitly.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 143

PostPosted: Fri Oct 15, 2021 4:52 am    Post subject: Reply with quote

Quote:
If you don't want something in your snapshot, exclude it explicitly.


There's a way to do this?
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Fri Oct 15, 2021 5:55 am    Post subject: Reply with quote

Gooberpatrol66,

What kind of snapshots you're using? Are those just backups or actual snapshots of a filesystem?
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 143

PostPosted: Fri Oct 15, 2021 6:53 am    Post subject: Reply with quote

I'm using btrfs snapshots.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Fri Oct 15, 2021 10:24 pm    Post subject: Reply with quote

Quote:
I'm experiencing issues with several daemons that get killed by systemd because it fails to find a file at /run/<service>.pid whereas the daemon tries to write to /var/run/<service>.pid.

Your daemon is probably outdated.

/run was introduced to the Linux world 10 years ago (see https://lwn.net/Articles/436012/). Most distributions use /run nowadays. Your daemon should NOT write to /var/run. It should use /run.

And /var/run should either be a symlink to /run or a bind mount of /run. Not only on Gentoo. Most distributions do that nowadays.
Back to top
View user's profile Send private message
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 143

PostPosted: Sun Oct 17, 2021 10:38 pm    Post subject: Reply with quote

Quote:
Your daemon is probably outdated.

It seemed to be occurring with the latest stable versions of nut and gssproxy.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum