Code: Select all
rc_plug_services="!net.wlan0"

Code: Select all
rc_plug_services="!net.wlan0"
No, it didn't work.d2_racing wrote:You should try this :
Code: Select all
rc_plug_services="!net.wlan0"
You seem to have an old config? In my 0.6.0 config, I see neither rc_coldplug nor rc_plug_services nor EDITOR. And I have disabled hotplugging of network by the following:pilla wrote:/etc/rc.conf:Code: Select all
rc_hotplug="YES" rc_coldplug="NO" rc_plug_services="" EDITOR="/usr/bin/vim"
Code: Select all
rc_hotplug="!net.*"Code: Select all
/etc/init.d/foo startCode: Select all
/etc/init.d/foo status
foo | * status: crashed
Code: Select all
/etc/init.d/foo start
foo | * WARNING: foo has already been started

Hi,Skotlex wrote:Openrc seems to not handle well shutdown/restart when a service fails to go down. Case in point, I can turn off the wicd service normally (it takes a few seconds) from the shell, but during shutdown/reboot it always fails to be brought down. And as a result the whole shutdown process goes crazy.
When I don't use parallel startup, another service is picked to be shutdown, but then openrc says it can't go down because wicd is still up, so it "waits" (waiting 50 secs, waiting 45 sec, etc, etc). Yet, every now and then (around every minute) it retries to bring down wicd again, and again it fails. This loop goes on forever and it doesn't ever gets to reboot.
When a service fails to go down, shouldn't it either abort the halt sequence or just "zap" it and continue rebooting/halting? The current behaviour leaves me with a machine I can't use at all (unless I use the Magic SysReq to force a reboot/halt of the system).
The behaviour is even more chaotic when parallel startup is enabled. In this case, it appears that all services that CAN go down are unnoticed, because I get messages that go like: "waiting for wicd...." and after that expires,then I start getting messages like "waiting for localmount..." or any other service that shouldn't have problems going down on their own (unless they are tagged as forever stalled because they were waiting for wicd?)
Sorry I can't provide better logs of what's happening as the console is non-operational already while rebooting/halting (so I can't copy/paste anything). I THINK this should be easy to reproduce by simply editing any rc script to always fail on halt (and probably adding a second or two sleep within, too).
OpenRC 0.6.0-r1
Baselayout 2.0.1
Code: Select all
# Give some time to stop all the services,
# otherwise force reboot/poweroff
sleep 8
case "`/sbin/runlevel|/bin/cut -c 3`" in
0)
echo "Force power off"
umount -r -a > /dev/null
poweroff -f
;;
6)
echo "Force reboot"
umount -r -a > /dev/null
reboot -f
;;
esac
I solved this problem myself when I discovered that the problem wasn't the RC script failing to stop, but having an invocation of a run-level change WHILE in the midst of changing run-level.VoVaN wrote: Hi,
I'm experiencing the same behavior, but I thought it's because I use Gentoo with network boot and aufs. I've tried already to understand what's going on, but apparently it's very complicated. So as a dirty workaround I've placed in stop section of /etc/conf.d/local:
...
Code: Select all
Runlevel: default
syslog-ng [ started ]
iptables [ started ]
udev-postmount [ started ]
net.eth0 [ started ]
net.eth1 [ started ]
sshd [ started ]
vixie-cron [ started ]
ntpd [ started ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
udev-mount [ started ]
Dynamic Runlevel: manual
Code: Select all
Runlevel: default
syslog-ng [ started ]
vixie-cron [ started ]
iptables [ started ]
net.eth0 [ started ]
net.eth1 [ started ]
ntpd [ started ]
udev-postmount [ started ]
sshd [ started ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
sysfs [ started ]
Dynamic Runlevel: manual
vklimovs wrote:
I have two absolutely identical machines that have absolutely the same set of software installed (basically just system and system tools: cron, slocate, syslog, logrotate etc.). Both machines run OpenRC 0.6.2. However, after boot on one machine set of started services looks like that:
but on another one like that:Code: Select all
Runlevel: default syslog-ng [ started ] iptables [ started ] udev-postmount [ started ] net.eth0 [ started ] net.eth1 [ started ] sshd [ started ] vixie-cron [ started ] ntpd [ started ] Dynamic Runlevel: hotplugged Dynamic Runlevel: needed udev-mount [ started ] Dynamic Runlevel: manual
Why is that? Which is correct one? How do I make the one that starts incorrect service start correct one?Code: Select all
Runlevel: default syslog-ng [ started ] vixie-cron [ started ] iptables [ started ] net.eth0 [ started ] net.eth1 [ started ] ntpd [ started ] udev-postmount [ started ] sshd [ started ] Dynamic Runlevel: hotplugged Dynamic Runlevel: needed sysfs [ started ] Dynamic Runlevel: manual
Code: Select all
...
Dynamic Runlevel: manual
chroot_gen32 [ started ]
Code: Select all
...
Dynamic Runlevel: manual
chroot_gen32 [ started ]
boinc [ started ]

Code: Select all
$ cat /proc/self/cgroup
2:cpu:/2147483647
1:blkio:/0

Code: Select all
* Caching service dependencies ... /lib64/rc/sh/rc-functions.sh: line 91: shell_var: command not found [ ok ]
Apart from the date that must be a joke I find this being sparse if not poorly documented as it leave at least me scratching my head whether this should be set on the host system or in the virtual container or both, anyone being clear on this?# This is the subsystem type. Valid options on Linux:
# "" - nothing special
# "lxc" - Linux Containers
# "openvz" - Linux OpenVZ
# "prefix" - Prefix
# "uml" - Usermode Linux
# "vserver" - Linux vserver
# "xen0" - Xen0 Domain
# "xenU" - XenU Domain
# If unset, the old automagic detection code will be triggered. Said old code
# is deprecated and be removed not later than 2010/03/01.
rc_sys=""


Code: Select all
config_eth1="22.64.250.66 netmask 255.255.255.0 broadcast 82.64.250.66"
config_eth0="192.168.0.66 netmask 255.255.255.0 broadcast 192.168.0.255"
tuntap_tap0="tap"
config_tap0="10.10.10.20 netmask 255.255.255.0 broadcast 10.10.10.255"
routes_tap0=(
#"192.168.0.8"
#"192.168.0.9"
"192.168.0.47"
#"192.168.0.48"
#"192.168.0.53"
"192.168.0.63"
"192.168.0.77"
#"22.64.250.8"
#"22.64.250.9"
"22.64.250.47"
#"22.64.250.48"
#"22.64.250.53"
"22.64.250.63"
"22.64.250.77"
)
routes_eth1=("default via 22.64.250.1")
Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
22.64.250.63 0.0.0.0 255.255.255.255 UH 0 0 0 tap0
22.64.250.47 0.0.0.0 255.255.255.255 UH 1000 0 0 tap0
22.64.250.77 0.0.0.0 255.255.255.255 UH 1000 0 0 tap0
192.168.0.77 0.0.0.0 255.255.255.255 UH 1000 0 0 tap0
192.168.0.63 0.0.0.0 255.255.255.255 UH 0 0 0 tap0
192.168.0.47 0.0.0.0 255.255.255.255 UH 1000 0 0 tap0
22.64.250.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 tap0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 22.64.250.1 0.0.0.0 UG 0 0 0 eth1