Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Raspberry no /var/run/*, runscript, Skipping module
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
dasPaul
Apprentice
Apprentice


Joined: 14 Feb 2012
Posts: 222
Location: Dresden

PostPosted: Wed Sep 09, 2015 8:13 am    Post subject: [Solved]Raspberry no /var/run/*, runscript, Skipping module Reply with quote

Hi there
I just got gentoo on my RaspberryPi2 but I get some strange errors during boot.

1st. There are lots of skipping messages during boot and I dont know where they come from:

Code:
rc default logging started at Tue Sep  8 17:19:02 2015

 * Bringing up interface wlan0
 *   Skipping module adsl due to missing program: /usr/sbin/adsl-start /usr/sbin/pppoe-start
 *   Skipping module br2684ctl due to missing program: br2684ctl
 *   Skipping module bridge due to missing program: brctl
 *   Skipping module clip due to missing program: /usr/sbin/atmsigd
 *   Skipping module netplugd due to missing program: /sbin/netplugd
 *   Skipping module ifplugd due to missing program: /usr/sbin/ifplugd
 *   Skipping module ipppd due to missing program: /usr/sbin/ipppd
 *   Skipping module firewalld due to missing program: firewall-cmd
 *   Skipping module pppd due to missing program: /usr/sbin/pppd
 *   Skipping module dhclient due to missing program: /sbin/dhclient
 *   Skipping module pump due to missing program: /sbin/pump
 *   Loaded modules: apipa arping bonding tuntap ccwgroup ethtool macvlan macchanger macnet wpa_supplicant sute2 system vlan dhcpcd ip6rd ip6to4


Code:
rc-config show --all
Status of init scripts in runlevel "boot"
  binfmt                    [started]
  bootmisc                  [started]
  fsck                      [started]
  hostname                  [started]
  keymaps                   [started]
  localmount                [started]
  loopback                  [started]
  modules                   [started]
  mtab                      [started]
  procfs                    [started]
  root                      [started]
  swap                      [started]
  swapfiles                 [started]
  swclock                   [started]
  sysctl                    [started]
  termencoding              [started]
  tmpfiles.setup            [started]
  urandom                   [started]
Status of init scripts in runlevel "default"
  distccd                   [started]
  lighttpd                  [started]
  local                     [started]
  netmount                  [started]
  net.wlan0                 [started]
  ntp-client                [stopped]
  sshd                      [started]
  syslog-ng                 [started]
  vixie-cron                [started]
Status of init scripts in runlevel "shutdown"
  killprocs                 [stopped]
  mount-ro                  [stopped]
  savecache                 [stopped]
Status of init scripts in runlevel "sysinit"
  devfs                     [started]
  dmesg                     [started]
  kmod-static-nodes         [started]
  rpc.statd                 [started]
  sysfs                     [started]
  tmpfiles.dev              [started]
  udev                      [started]


Code:
 rc-update
               binfmt | boot                         
             bootmisc | boot                         
                devfs |                       sysinit
              distccd |      default                 
                dmesg |                       sysinit
                 fsck | boot                         
             hostname | boot                         
              keymaps | boot                         
            killprocs |              shutdown       
    kmod-static-nodes |                       sysinit
             lighttpd |      default                 
                local |      default                 
           localmount | boot                         
             loopback | boot                         
              modules | boot                         
             mount-ro |              shutdown       
                 mtab | boot                         
            net.wlan0 |      default                 
             netmount |      default                 
           ntp-client |      default                 
               procfs | boot                         
                 root | boot                         
            rpc.statd |                       sysinit
            savecache |              shutdown       
                 sshd |      default                 
                 swap | boot                         
            swapfiles | boot                         
              swclock | boot                         
               sysctl | boot                         
                sysfs |                       sysinit
            syslog-ng |      default                 
         termencoding | boot                         
         tmpfiles.dev |                       sysinit
       tmpfiles.setup | boot                         
                 udev |                       sysinit
              urandom | boot                         
           vixie-cron |      default


2nd I get lots of "start-stop-daemon: fopen `/var/run/sshd.pid': No such file or directory"

Code:
 *   Starting wpa_supplicant on wlan0 ...
 *   start-stop-daemon: fopen `/var/run/wpa_supplicant-wlan0.pid': No such file or directory
 *   Detaching to start `/usr/sbin/wpa_supplicant' ...
 [ ok ]
 *   Starting wpa_cli on wlan0 ...
 *   start-stop-daemon: fopen `/var/run/wpa_cli-wlan0.pid': No such file or directory
 *   Detaching to start `/usr/bin/wpa_cli' ...
 [ ok ]
 *   Backgrounding ... ...
 * WARNING: net.wlan0 has started, but is inactive
 * Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ...
 [ ok ]
 * Starting syslog-ng ...
 * start-stop-daemon: fopen `/run/syslog-ng.pid': No such file or directory
 * Detaching to start `/usr/sbin/syslog-ng' ...
 [ ok ]
 * WARNING: netmount will start when net.wlan0 has started
 * Starting sshd ...
 * start-stop-daemon: fopen `/var/run/sshd.pid': No such file or directory
 * Detaching to start `/usr/sbin/sshd' ...
 [ ok ]
 * Setting clock via the NTP client 'ntpdate' ...
 * Failed to set clock
 [ !! ]
 * ERROR: ntp-client failed to start
 * Starting vixie-cron ...
 * start-stop-daemon: fopen `/var/run/cron.pid': No such file or directory
 * Detaching to start `/usr/sbin/cron' ...
 [ ok ]
 * Starting local ...
 *   Executing "/etc/local.d/mounts.start" ...
 [ ok ]
 [ ok ]
 * Starting lighttpd ...
 * start-stop-daemon: fopen `/var/run/lighttpd.pid': No such file or directory
 * Detaching to start `/usr/sbin/lighttpd' ...
 [ ok ]

rc default logging stopped at Tue Sep  8 18:11:20 2015


But /var/run exists and files are created after boot and all services run after login:

Code:
ls -lah /var/run
lrwxrwxrwx 1 root root 4 30. Jul 07:50 /var/run -> /run

Code:
ls -lah /run/
insgesamt 40K
drwxr-xr-x 10 root     root      440  8. Sep 18:15 .
drwxr-xr-x 19 root     root     4.0K 15. Aug 10:20 ..
-rw-r--r--  1 root     root        5  8. Sep 18:11 cron.pid
-rw-------  1 root     root        0  8. Sep 18:15 dht.lock
drwxr-xr-x  2 distcc   daemon     60  8. Sep 18:11 distccd
drwxr-x---  2 lighttpd lighttpd   40  8. Sep 18:11 lighttpd
-rw-r--r--  1 root     root        5  8. Sep 18:11 lighttpd.pid
drwxrwxr-x  2 root     uucp       40  1. Jan 1970  lock
drwxr-xr-x  2 root     root       80  8. Sep 18:11 mount
drwxrwxr-x 14 root     root      380  8. Sep 18:11 openrc
-r--r--r--  1 root     root        0  1. Jan 1970  rpcbind.lock
srw-rw-rw-  1 root     root        0  1. Jan 1970  rpcbind.sock
-rw-r--r--  1 root     root        4  1. Jan 1970  rpc.statd.pid
-rw-r--r--  1 root     root        5  8. Sep 18:11 sshd.pid
srwxr-xr-x  1 root     root        0  8. Sep 18:11 syslog-ng.ctl
-rw-r--r--  1 root     root        5  8. Sep 18:11 syslog-ng.pid
drwxrwxr-x  2 root     root       60  1. Jan 1970  tmpfiles.d
drwxr-xr-x  6 root     root      140  8. Sep 18:11 udev
-rw-rw-r--  1 root     utmp     4.2K  8. Sep 18:11 utmp
-rw-r--r--  1 root     root        5  8. Sep 18:11 wpa_cli-wlan0.pid
drwxr-x---  2 root     wheel      60  8. Sep 18:11 wpa_supplicant
-rw-r--r--  1 root     root        5  8. Sep 18:11 wpa_supplicant-wlan0.pid


Code:
mount
/dev/mmcblk0p3 on / type ext4 (rw,noatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=123497,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
[b]tmpfs on /run type tmpfs (rw,nodev,relatime,size=99660k,mode=755)[/b]
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc)
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)
blkio on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
devices on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
freezer on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
net_cls on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
tmpfs on /var/log type tmpfs (rw,nosuid,noatime,size=102400k,mode=755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)


Code:
cat /etc/fstab
/dev/mmcblk0p1          /boot           vfat            defaults        0 2
/dev/mmcblk0p3               /               ext4            noatime         0 1
tmpfs                   /var/log        tmpfs   defaults,noatime,nosuid,mode=0755,size=100m    0 0


3rd I got " runscript is deprecated; please use openrc-run instead. " messages. I did dirty-fix this by doing:

Code:
sed -i -- 's/runscript/openrc-run/g' *


I can't escape the feeling that all those errors somehow have an unique origin. Maybe someone has an idea whats going on here


Last edited by dasPaul on Thu Sep 10, 2015 8:17 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46708
Location: 56N 3W

PostPosted: Wed Sep 09, 2015 12:06 pm    Post subject: Reply with quote

dasPaul,

All those missing modules are things you could run on a network interface if you really wanted to.
Several of them provide the same functionality, so you really wouldn't want.
That they are not installed is quite normal.

You normally run these modules from your /etc/conf.d/net file.
I have
Code:
modules="iproute2"


Please post your /etc/conf.d/net
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
dasPaul
Apprentice
Apprentice


Joined: 14 Feb 2012
Posts: 222
Location: Dresden

PostPosted: Thu Sep 10, 2015 7:17 am    Post subject: Reply with quote

looks quite generic:

Code:
cat /etc/conf.d/net
config_eth0="192.168.1.51 netmask 255.255.255.0 brd 192.168.1.255"
routes_eth0="default via 192.168.1.1"

modules_wlan0="wpa_supplicant"
wpa_supplicant_wlan0="-Dwext -d -f /var/log/wpa_supplicant.log"
config_wlan0="192.168.1.50 netmask 255.255.255.0 brd 192.168.1.255"
routes_wlan0="default via 192.168.1.1"


I did some search through my root filesystem for the modules and found occurrences:

Code:

grep -r -e "adsl" -e "br2684ctl" -e "pump" /lib/

/lib/netifrc/net/dhcpcd.sh:     after dhclient pump udhcpc
/lib/netifrc/net/adsl.sh:adsl_depend()
/lib/netifrc/net/adsl.sh:       program /usr/sbin/adsl-start /usr/sbin/pppoe-start
/lib/netifrc/net/adsl.sh:adsl_setup_vars()
/lib/netifrc/net/adsl.sh:               exe="/usr/sbin/adsl-${startstop}"
/lib/netifrc/net/adsl.sh:               cfgexe=adsl-setup
/lib/netifrc/net/adsl.sh:adsl_start()
/lib/netifrc/net/adsl.sh:       adsl_setup_vars start || return 1
/lib/netifrc/net/adsl.sh:       eval user=\$adsl_user_${IFVAR}
/lib/netifrc/net/adsl.sh:adsl_stop()
/lib/netifrc/net/adsl.sh:       adsl_setup_vars stop || return 1
/lib/netifrc/net/pump.sh:pump_depend()
/lib/netifrc/net/pump.sh:       program /sbin/pump
/lib/netifrc/net/pump.sh:_config_vars="$_config_vars dhcp pump"
/lib/netifrc/net/pump.sh:pump_start()
/lib/netifrc/net/pump.sh:       ebegin "Running pump"
/lib/netifrc/net/pump.sh:       eval pump "${args}"
/lib/netifrc/net/pump.sh:pump_stop()
/lib/netifrc/net/pump.sh:       # We check for a pump process first as querying for status
/lib/netifrc/net/pump.sh:       # causes pump to spawn a process
/lib/netifrc/net/pump.sh:       start-stop-daemon --quiet --test --stop --exec /sbin/pump || return 0
/lib/netifrc/net/pump.sh:       # Check that pump is running on the interface
/lib/netifrc/net/pump.sh:       if ! pump --status --interface "${IFACE}" >/dev/null 2>&1; then
/lib/netifrc/net/pump.sh:       ebegin "Stopping pump on ${IFACE}"
/lib/netifrc/net/pump.sh:       pump --release --interface "${IFACE}"
/lib/netifrc/net/pump.sh:       eend $? "Failed to stop pump"
/lib/netifrc/net/br2684ctl.sh:br2684ctl_depend()
/lib/netifrc/net/br2684ctl.sh:  program start br2684ctl
/lib/netifrc/net/br2684ctl.sh:br2684ctl_pre_start()
/lib/netifrc/net/br2684ctl.sh:  eval opts=\$br2684ctl_${IFVAR}
/lib/netifrc/net/br2684ctl.sh:                  eerror "The -b and -c options are not allowed for br2684ctl_${IVAR}"
/lib/netifrc/net/br2684ctl.sh:                  eerror "-a option (VPI and VCI) is required in br2684ctl_${IFVAR}"
/lib/netifrc/net/br2684ctl.sh:  start-stop-daemon --start --exec $(_which br2684ctl) --background \
/lib/netifrc/net/br2684ctl.sh:          --make-pidfile --pidfile "/var/run/br2684ctl-${IFACE}.pid" \
/lib/netifrc/net/br2684ctl.sh:br2684ctl_post_stop()
/lib/netifrc/net/br2684ctl.sh:  local pidfile="/var/run/br2684ctl-${IFACE}.pid"
/lib/rc/cache/nettree:module_0='adsl'
/lib/rc/cache/nettree:module_0_program='/usr/sbin/adsl-start /usr/sbin/pppoe-start'
/lib/rc/cache/nettree:module_4='br2684ctl'
/lib/rc/cache/nettree:module_4_program_start='br2684ctl'
/lib/rc/cache/nettree:module_27='pump'
/lib/rc/cache/nettree:module_27_program='/sbin/pump'


Code:
grep -r -e "adsl" -e "br2684ctl" -e "pump" /run/

/run/openrc/nettree:module_0='adsl'
/run/openrc/nettree:module_0_program='/usr/sbin/adsl-start /usr/sbin/pppoe-start'
/run/openrc/nettree:module_4='br2684ctl'
/run/openrc/nettree:module_4_program_start='br2684ctl'
/run/openrc/nettree:module_27='pump'
/run/openrc/nettree:module_27_program='/sbin/pump'
Back to top
View user's profile Send private message
dasPaul
Apprentice
Apprentice


Joined: 14 Feb 2012
Posts: 222
Location: Dresden

PostPosted: Thu Sep 10, 2015 7:30 am    Post subject: Reply with quote

ok I found those modules could be called by this line in:

/etc/init.d/net.wlan0
Code:

MODULESDIR="/lib/netifrc/net"
MODULESLIST="${RC_SVCDIR}/nettree"
Back to top
View user's profile Send private message
dasPaul
Apprentice
Apprentice


Joined: 14 Feb 2012
Posts: 222
Location: Dresden

PostPosted: Thu Sep 10, 2015 8:15 am    Post subject: Reply with quote

All problems solved by setting this line in "/etc/rc.conf" from:

Code:
rc_verbose=yes


to

Code:
#rc_verbose=yes


no more any error messages

:roll:
Back to top
View user's profile Send private message
eugen_mihailescu
n00b
n00b


Joined: 27 Sep 2011
Posts: 23

PostPosted: Wed Apr 25, 2018 8:23 am    Post subject: Reply with quote

The "problem" is the OpenRC and its `netifrc` USE flag (check `equery uses openrc`).

What's happening is that OpenRC uses /lib/netifrc/net/*.sh scripts provided by the `net-misc/netifrc` package.

The (new version of OpenRC and) /etc/init.d/net.lo script will call all those scripts which would load the module (pppd, adsl, firewalld, etc) if installed, otherwise will just print that "Skipping module $mod due to missing program" warning.

Obviously one way to "fix" this (if you are really pedantic) would be to just rename the unwanted /lib/netifrc/net/*.sh scripts from *.sh to *.bak. But this is not really needed, if you know what's happening under the hood ;-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM 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