View previous topic :: View next topic |
Author |
Message |
Gooberpatrol66 Tux's lil' helper
Joined: 20 Jul 2014 Posts: 143
|
Posted: Fri Oct 15, 2021 3:08 am Post subject: [Solved] Is /var/run a symlink to /run in gentoo? |
|
|
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 |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2963 Location: Edge of marsh USA
|
Posted: Fri Oct 15, 2021 3:19 am Post subject: |
|
|
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 |
|
|
Gooberpatrol66 Tux's lil' helper
Joined: 20 Jul 2014 Posts: 143
|
Posted: Fri Oct 15, 2021 4:52 am Post subject: |
|
|
Quote: | If you don't want something in your snapshot, exclude it explicitly. |
There's a way to do this? |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3345 Location: Rasi, Finland
|
Posted: Fri Oct 15, 2021 5:55 am Post subject: |
|
|
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 |
|
|
Gooberpatrol66 Tux's lil' helper
Joined: 20 Jul 2014 Posts: 143
|
Posted: Fri Oct 15, 2021 6:53 am Post subject: |
|
|
I'm using btrfs snapshots. |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Fri Oct 15, 2021 10:24 pm Post subject: |
|
|
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 |
|
|
Gooberpatrol66 Tux's lil' helper
Joined: 20 Jul 2014 Posts: 143
|
Posted: Sun Oct 17, 2021 10:38 pm Post subject: |
|
|
Quote: | Your daemon is probably outdated.
|
It seemed to be occurring with the latest stable versions of nut and gssproxy. |
|
Back to top |
|
|
|