Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenRC can't find *.pid files in the /run directory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Duke Owlington
n00b
n00b


Joined: 01 Nov 2020
Posts: 3

PostPosted: Sat Feb 13, 2021 3:04 pm    Post subject: OpenRC can't find *.pid files in the /run directory Reply with quote

I see in the rc.log that for some reason start-stop-daemon can't fopen *.pid files in /run directory. But after boot, when I check /run directory, all *.pid files that start-stop-daemon couldn't find, are there. For example sshd.pid file.

Here is the contents of my rc.log:

Code:

rc default logging started at Sat Feb 13 20:19:59 2021

sysklogd          |sysklogd          | * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/sysklogd start
sysklogd          | * Starting sysklogd ...
sysklogd          | * start-stop-daemon: fopen `/run/sysklogd.pid': No such file or directory
sysklogd          | * Detaching to start `/usr/sbin/syslogd' ...
 [ ok ]
cronie            |cronie            | * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/cronie start
sshd              |sshd              | * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/sshd start
wpa_supplicant    |wpa_supplicant    | * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/wpa_supplicant start
cronie            | * Starting cronie ...
cronie            | * start-stop-daemon: fopen `/var/run/crond.pid': No such file or directory
cronie            | * Detaching to start `/usr/sbin/crond' ...
 [ ok ]
wpa_supplicant    | * Starting WPA Supplicant Daemon ...
wpa_supplicant    | * Detaching to start `/usr/sbin/wpa_supplicant' ...
wpa_supplicant    |Successfully initialized wpa_supplicant
 [ ok ]
net.enp1s0        |net.enp1s0        | * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/net.enp1s0 start
dhcpcd            |dhcpcd            | * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/dhcpcd start
dhcpcd            | * Starting DHCP Client Daemon ...
dhcpcd            | * start-stop-daemon: fopen `/var/run/dhcpcd.pid': No such file or directory
dhcpcd            | * Detaching to start `/sbin/dhcpcd' ...
net.enp1s0        | * Bringing up interface enp1s0
net.enp1s0        | *   Caching network module dependencies
net.enp1s0        |need dbus
net.enp1s0        | *   Skipping module adsl due to missing program: /usr/sbin/adsl-start /usr/sbin/pppoe-start
net.enp1s0        | *   Skipping module br2684ctl due to missing program: br2684ctl
net.enp1s0        | *   Skipping module clip due to missing program: /usr/sbin/atmsigd
net.enp1s0        | *   Skipping module ethtool due to missing program: ethtool
net.enp1s0        | *   Skipping module netplugd due to missing program: /sbin/netplugd
net.enp1s0        | *   Skipping module ipppd due to missing program: /usr/sbin/ipppd
net.enp1s0        | *   Skipping module iwconfig due to missing program: /sbin/iwconfig
net.enp1s0        | *   Skipping module iw due to missing program: /usr/sbin/iw
net.enp1s0        | *   Skipping module firewalld due to missing program: firewall-cmd
net.enp1s0        | *   Skipping module pppd due to missing program: /usr/sbin/pppd
net.enp1s0        | *   Skipping module pump due to missing program: /sbin/pump
net.enp1s0        | *   Skipping module dhclient due to missing program: /sbin/dhclient
net.enp1s0        | *   Skipping module wireguard due to missing program: /usr/bin/wg
net.enp1s0        | *   Loaded modules: apipa arping bonding l2tp tuntap bridge ccwgroup dummy hsr macvlan macchanger macnet ifplugd wpa_supplicant ssidnet iproute2 system vlan dhcpcd ip6r>
net.enp1s0        | *   ip link set dev enp1s0 up
 [ ok ]
net.enp1s0        | *   Configuring enp1s0 for MAC address 40:B0:34:04:56:A0 ...
 [ ok ]
net.enp1s0        | *   Starting ifplugd on enp1s0 ...
net.enp1s0        | *   start-stop-daemon: fopen `/run/ifplugd.enp1s0.pid': No such file or directory
net.enp1s0        | *   Detaching to start `/usr/sbin/ifplugd' ...
 [ ok ]
net.enp1s0        | *     Backgrounding ...
net.enp1s0        | * WARNING: net.enp1s0 has started, but is inactive
netmount          | * WARNING: netmount will start when net.enp1s0 has started
sshd              | * Starting sshd ...
sshd              | * supervise-daemon: fopen `/run/sshd.pid': No such file or directory
sshd              | * Detaching to start `/usr/sbin/sshd'
 [ ok ]
local             |local             | * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/local start
local             | * Starting local ...
 [ ok ]

rc default logging stopped at Sat Feb 13 20:20:01 2021


At first I thought that I get these messages because /run directory is not mounted to tmpfs. But, as I can see in mount command output, it is mounted:
Code:

proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
none on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=1464093,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda3 on / type ext4 (rw,noatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc)
none on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cpuset on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cpuacct on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
freezer on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
/dev/sda2 on /boot type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=4194304k)


If I add mount of /run directory to fstab file manually, I get lots of errors in rc.log.

tmpfs kernel option is enabled.

What can I do to get rid of these messagese? Is there a way to fix this problem? Thanks in advance.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1654

PostPosted: Fri Mar 19, 2021 1:50 am    Post subject: Reply with quote

Can you clarify if anything is not working as expected?
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
RE0
n00b
n00b


Joined: 29 May 2023
Posts: 2

PostPosted: Tue May 30, 2023 3:58 am    Post subject: Reply with quote

Hi Duke.
Got the same issues on start-stop-daemon.
Is this problem solved now?
Thanks.
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 324
Location: Naarm/Melbourne, Australia

PostPosted: Thu Jun 01, 2023 4:43 am    Post subject: Reply with quote

Quote:
Code:
none on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)

This doesn't look right; that should say "tmpfs on /run". What does the relevant line in the /etc/fstab say?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1642

PostPosted: Thu Jun 01, 2023 12:26 pm    Post subject: Reply with quote

flexibeast wrote:
Quote:
Code:
none on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)

This doesn't look right; that should say "tmpfs on /run". What does the relevant line in the /etc/fstab say?


It can say anything in the first column as the tmpfs driver will ignore it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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