Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openrc support thread
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 28, 29, 30, 31, 32, 33  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sat Feb 28, 2009 5:31 pm    Post subject: Reply with quote

Roy, your reactivity is always stunning :-) . Thanks a lot.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Slalomsk8er
Apprentice
Apprentice


Joined: 03 May 2003
Posts: 228
Location: Münchenstein, Switzerland

PostPosted: Tue Mar 03, 2009 1:57 pm    Post subject: Reply with quote

I would like it if every thing in /etc/init.d/net.* would provide net to the other services. I need this to develop on my Notebook in the train or on a wlan as it seams like the default is that only net.eth0 provides net. What do i need to archive this goal?

Regards, Dominik
_________________
GNU/Linux user #383872
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Tue Mar 03, 2009 3:18 pm    Post subject: Reply with quote

Slalomsk8er wrote:
I would like it if every thing in /etc/init.d/net.* would provide net to the other services. I need this to develop on my Notebook in the train or on a wlan as it seams like the default is that only net.eth0 provides net. What do i need to archive this goal?

/etc/rc.conf:
rc_depend_strict="NO"

_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Slalomsk8er
Apprentice
Apprentice


Joined: 03 May 2003
Posts: 228
Location: Münchenstein, Switzerland

PostPosted: Tue Mar 03, 2009 3:29 pm    Post subject: Reply with quote

Thank you VinzC, I don't know how I could have missed that one :oops:
_________________
GNU/Linux user #383872
Back to top
View user's profile Send private message
oldpond
n00b
n00b


Joined: 01 Oct 2007
Posts: 8

PostPosted: Sat Mar 07, 2009 3:16 am    Post subject: DHCP fails to get lease Reply with quote

I ran emerge world this week on my laptop and workstation. Now both of them can't connect to the internet. The problem is that dhcp does not get a lease from my router because it times out. If I set them up for static IP, they get an IP address no problem, but they can't resolve domain names. I can ping the router with my static IP, but I can't ping www.gentoo.org. Both machines work fine when booted into Windows.

I've been over the openrc migration guide, and I've asked on the IRC channels, but no luck. Any ideas?
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Sat Mar 07, 2009 7:12 am    Post subject: Reply with quote

If you're ok with static IPs,
Code:
su -
echo "nameserver aaa.bbb.ccc.ddd" >> /etc/resolv.conf
where aaa.bbb.ccc.ddd represents either the IP of your router or a known nameserver(i.e. the ones from opendns.org)
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sat Mar 07, 2009 11:09 am    Post subject: Re: DHCP fails to get lease Reply with quote

oldpond wrote:
I ran emerge world this week on my laptop and workstation. Now both of them can't connect to the internet. The problem is that dhcp does not get a lease from my router because it times out. If I set them up for static IP, they get an IP address no problem, but they can't resolve domain names. I can ping the router with my static IP, but I can't ping www.gentoo.org. Both machines work fine when booted into Windows.

I've been over the openrc migration guide, and I've asked on the IRC channels, but no luck. Any ideas?

Tried downgrading to dhcpcd-3* ?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
oldpond
n00b
n00b


Joined: 01 Oct 2007
Posts: 8

PostPosted: Sat Mar 07, 2009 3:21 pm    Post subject: Reply with quote

That was wierd. DHCPCD seem to be wiping out my /etc/hosts, and /etc/resolv.conf files. As soon as I put all of those (plus /etc/conf.d/net) back in order with a static IP, I am good to go.

Thx for the help.

Edit. Adding a route for the default gateway seemed to be required as well.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sat Mar 07, 2009 3:49 pm    Post subject: Reply with quote

Hmmm... dhcpcd is not supposed to even touch the hosts file, only /etc/resolv.conf and /etc/ntp.conf if told to by the DHCP server. To avoid this use options -D (no resolv.conf) and -N (no ntp.conf).
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Sat Mar 07, 2009 9:05 pm    Post subject: Reply with quote

is -D an option of dhcpcd-3?
it seems to do nothing with dhcpcd-4. the man-pages says -C resolv.conf, and that works.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sat Mar 07, 2009 10:55 pm    Post subject: Reply with quote

alex.blackbit wrote:
is -D an option of dhcpcd-3?

Yup.
alex.blackbit wrote:
it seems to do nothing with dhcpcd-4. the man-pages says -C resolv.conf, and that works.

Then compile dhcpcd-4* with USE flag compat.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Mar 09, 2009 1:49 pm    Post subject: Reply with quote

VinzC wrote:
Then compile dhcpcd-4* with USE flag compat.


Don't encourage that as there is no such option for dhcpcd-4.99 (soon to become dhcpcd-5!)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Mon Mar 09, 2009 6:52 pm    Post subject: Reply with quote

VinzC wrote:
Then compile dhcpcd-4* with USE flag compat.

UberLord wrote:
Don't encourage that as there is no such option for dhcpcd-4.99 (soon to become dhcpcd-5!)

Option nodns in /etc/conf.d/net, then? :)
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Mon Mar 09, 2009 8:19 pm    Post subject: Reply with quote

well, -C resolv.conf works as expected.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Mon Mar 09, 2009 8:19 pm    Post subject: Reply with quote

soth wrote:
What I noticed after the upgrade was [...] that devfs was waiting for udev for quite a bit but my system came up and all devices works; nic, sound, bluetooth...

albright wrote:
so would you say that openrc is now just as slow as standard
gentoo boot? Or did you mean that this udev delay was a
one time only event?

soth wrote:
Nope, it's a timeout (60s) since my bluetooth init scripts isn't returning as they should.
The device is found though...

I seem to experience this too, while it happens only from time to time. Sometimes when I boot my laptop I see devfs is waitng for udev and times out after 60 seconds. All my devices are up and running afterwards, though.

Till now it happened mostly in the evening when I'm at home. It never happened at work yet. When it happens I now force reboot with Ctrl-Alt-SysReq, B. However it's always after quite a few reboots (5-6) that the system boots normally without waiting. Today it happened while my laptop was on batteries but it also happened while on mains.

I have sys-apps/openrc-0.4.3-r1.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Mar 12, 2009 1:03 am    Post subject: Reply with quote

DigitalCorpus wrote:
Just finished and finally figured out why my fresh install wasn't booting as udev wasn't in run level sysinit. Now with OpenRC 0.4.3-r2 and 0.4.2, I have a strange little bug but ti seems to be benign (yet).

udevd is populated in the sysinit run level as well. Now it launches and runs, but twice during boot I get messages saying that it has failed and it tries to relaunch but ps shows it still running in the background. If I kill it once I log in and restart the service, everything is fine.


confirmed !

@Überlord:

would it be difficult to add a check or script to add udev to the sysinit runlevel ?

I'm installing my system from scratch right now (Daniel Robbin's funtoo stage3 tarball) and udev is also missing from sysinit runlevel by default

if people don't know it - they might find it difficult to fix it

thanks
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Mar 12, 2009 8:22 am    Post subject: Reply with quote

kernelOfTruth wrote:
@Überlord:

would it be difficult to add a check or script to add udev to the sysinit runlevel ?


Very :)
/dev could be managed by something else (mdev, edev, etc) or it could just be static.
In all the above cases, udev could be installed and starting it blindly would be the wrong thing to do.

Quote:
I'm installing my system from scratch right now (Daniel Robbin's funtoo stage3 tarball) and udev is also missing from sysinit runlevel by default


So the funtoo stage3 should be fixed, or the funtoo OpenRC ebuild there should be fixed.

Quote:
if people don't know it - they might find it difficult to fix it


This is also true, but sometimes an automated fix whilst sounds nice can also cause headaches, like the one above.
Any "fix" here should be in the supporting documentation.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Mar 12, 2009 8:25 am    Post subject: Reply with quote

The service timeout is a known issue and I have no idea why it happens.
I see it myself maybe once a month or so. So I acknowledge it exists, but I also have no idea about any possible fix.
My only thought on it as that it could be a bug in how tmpfs manages flocking.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Thu Mar 12, 2009 8:44 am    Post subject: Reply with quote

UberLord wrote:
The service timeout is a known issue and I have no idea why it happens.
I see it myself maybe once a month or so. So I acknowledge it exists, but I also have no idea about any possible fix.
My only thought on it as that it could be a bug in how tmpfs manages flocking.

Do you mean the timeout between devfs and udev? So it doesn't matter whether parallel start up is enabled or not, right?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Mar 12, 2009 9:37 am    Post subject: Reply with quote

VinzC wrote:
Do you mean the timeout between devfs and udev? So it doesn't matter whether parallel start up is enabled or not, right?


Right. It seems to happen more with parallel, but I have seen it happen without as well.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Fri Mar 13, 2009 8:41 pm    Post subject: Reply with quote

Today I swapped my Inspiron 9400 hard disk with a Dell XPS M1710 (both share exactly the same hardware, except the CPU and video card) and I ran into that issue between 15 and 20 times successively -- i.e. I rebooted with Ctrl-Alt-SysReq, B as many times. This time is seems to happens systematically when my laptop is running on batteries. I'm switching to normal mode :(.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!


Last edited by VinzC on Thu May 14, 2009 6:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
Skotlex
Guru
Guru


Joined: 13 Mar 2004
Posts: 306

PostPosted: Tue Mar 17, 2009 12:27 pm    Post subject: Reply with quote

Could someone explain what is the difference between the sysinit and boot runlevels? Is there a difference? I just noticed that in my sysinit I only have two services, "devfs, dmesg" while everything else (including devfs) is in the boot runlevel.

Also, I don't know if this was ever added, but is it possible to have cascading runlevels? (eg: if I make network a sub-level of nonetwork, things that are included in the nonetwork level will always be running when I switch to the network runlevel) This would only be handy when you switch a lot between being online/offline, and there are a lot of services in the nonetwork runlevel already (maintenance is annoying when having to keep the greater part of two runlevels sync'ed). My current solution has been to add all common services to the boot runlevel :/
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Mar 17, 2009 12:48 pm    Post subject: Reply with quote

Skotlex wrote:
Could someone explain what is the difference between the sysinit and boot runlevels? Is there a difference? I just noticed that in my sysinit I only have two services, "devfs, dmesg" while everything else (including devfs) is in the boot runlevel.


The sysinit runlevel is there to configure enough to bring the system into single user mode.
Basically ensure that /proc and /dev are mounted and working. /sys may get mounted as well if you use udev.

The boot runlevel is to start boot time operations, checking disks, configuring loopback, keyboard, etc.

Quote:

Also, I don't know if this was ever added, but is it possible to have cascading runlevels? (eg: if I make network a sub-level of nonetwork, things that are included in the nonetwork level will always be running when I switch to the network runlevel) This would only be handy when you switch a lot between being online/offline, and there are a lot of services in the nonetwork runlevel already (maintenance is annoying when having to keep the greater part of two runlevels sync'ed). My current solution has been to add all common services to the boot runlevel :/


http://roy.marples.name/projects/openrc/ticket/88
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Aurora
l33t
l33t


Joined: 26 Sep 2003
Posts: 658
Location: Classified

PostPosted: Fri Mar 20, 2009 7:49 pm    Post subject: Reply with quote

Everything seems to work great for me, until I try to shutdown the system.

Code:
* Remounting remaining filesystems read-only...          [ok]
*    Remounting / read only...

Nothing ever happens. Doh.

Thoughts?
_________________
"My downfall raises me to infinite heights." -Napoleon Bonaparte
Back to top
View user's profile Send private message
ichbinsisyphos
Guru
Guru


Joined: 08 Dec 2006
Posts: 547

PostPosted: Wed Mar 25, 2009 2:08 pm    Post subject: Reply with quote

I'm having a problem for a rather long time now. It slowly starts bothering me :-)

So, I have "bin", "sbin", "lib", usr/bin", "usr/sbin", "var" in ramdisks and "usr/portage", "usr/src" as squashfs/tmpfs-aufs-unions.

I boot an initrd, from which i mount the tmpfs folders, untar stuff over, pivot-root and start the real boot process.

On shutdown I tar the folders up via local.stop and let the system otherwise go down normally.

Now my problem: On every single reboot, the root filesystem needs to be checked. It started in one of the later releases of openrc I believe. I believe initially everything worked fine, but I'm not sure.

Where could my problem be? Something can't be properly unmounted I guess?
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page Previous  1, 2, 3 ... 28, 29, 30, 31, 32, 33  Next
Page 29 of 33

 
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