Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

OpenRC support thread, 2d Edition

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
242 posts
  • Page 1 of 10
    • Jump to page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 10
  • Next
Author
Message
timeBandit
Bodhisattva
Bodhisattva
User avatar
Posts: 2719
Joined: Fri Dec 31, 2004 1:54 am
Location: here, there or in transit

OpenRC support thread, 2d Edition

  • Quote

Post by timeBandit » Sat Aug 29, 2009 2:29 pm

Continuation of [topic=688186]the original[/topic], which has grown well beyond our usual threshold for action.

Post questions here if you have problems with the migration to, or initial setup of, the OpenRC init system.
Please be sure to read the Baselayout and OpenRC Migration Guide.
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Top
z_sfeng
Apprentice
Apprentice
Posts: 154
Joined: Wed Apr 21, 2004 8:57 pm
Location: Finland

hwclock timezone problem

  • Quote

Post by z_sfeng » Mon Aug 31, 2009 5:40 am

I didn't found my solution, so pasted again here in this new thread:

My system timezone is not correct.
I set my system time to "local", and time zone to Europe/Helsinki, and not sync hwclock at shutdown:

Code: Select all

$ cat /etc/conf.d/hwclock
clock="local"
clock_systohc="NO"
clock_args=""

$ cat /etc/timezone
Europe/Helsinki
If I sync hwclock to correct time (BIOS time is correct EEST time) , after reboot there is always 3 hours time difference. But interestingly, restart /etc/init.d/hwclock can restore my system time correctly.

Try to be more clearly, the system time is:
after reboot, "date" shows, 13:45:44 EEST 2009 (wrong)
"hwclock" shows, 10:45 EEST (correct)
run /etc/init.d/hwclock restart, show:

Code: Select all

"Setting system clock using the hardware clock [Local Time] ...     [OK]
now, "date" shows, 10:49:14 EEST 2009 (correct!)
"hwclock" shows, 10:49:43 AM EEST (correct!)

after a reboot, system time goes wrong again.

Yesterday, I deleted /etc/localtime, the time seemed correct after reboot. However it is NOT. the timezone is reseted to UTC, /etc/timezone has no effect:

Code: Select all

$ date
Mon Aug 31 08:33:48 UTC 2009
Top
z_sfeng
Apprentice
Apprentice
Posts: 154
Joined: Wed Apr 21, 2004 8:57 pm
Location: Finland

  • Quote

Post by z_sfeng » Tue Sep 01, 2009 10:00 am

OK. I deleted /etc/timezone, and copy /usr/share/zoneinfo/Europe/Helsink to /etc/localtime. The time is correct now! Is the openrc migration manual misleading ?
Top
loki_val
Retired Dev
Retired Dev
Posts: 418
Joined: Mon Nov 13, 2006 11:03 am
Location: Denmark

  • Quote

Post by loki_val » Tue Sep 01, 2009 12:25 pm

/etc/timezone is handled by the timezone-data ebuild. Every time you update /etc/timezone, you should run

Code: Select all

emerge --config timezone-data
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Thu Sep 03, 2009 5:49 pm

loki_val wrote:/etc/timezone is handled by the timezone-data ebuild. Every time you update /etc/timezone, you should run

Code: Select all

emerge --config timezone-data
Ha! First time I ever see that in more than five years of using Gentoo! Everyday has its share of education... :D

EDIT: [OT] Does /etc/timezone supersede /etc/localtime or should both reside on a system?
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
loki_val
Retired Dev
Retired Dev
Posts: 418
Joined: Mon Nov 13, 2006 11:03 am
Location: Denmark

  • Quote

Post by loki_val » Thu Sep 03, 2009 6:12 pm

VinzC wrote:Does /etc/timezone supersede /etc/localtime or should both reside on a system?
Both should be on a system. /etc/localtime is a system-managed file which the user should not interfere with. /etc/timezone is the proper place to set how the system manages that file.
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Fri Sep 04, 2009 5:16 am

VinzC wrote:Does /etc/timezone supersede /etc/localtime or should both reside on a system?
loki_val wrote:Both should be on a system. /etc/localtime is a system-managed file which the user should not interfere with. /etc/timezone is the proper place to set how the system manages that file.
Does it mean the system uses the value in /etc/timezone to determine which object from /usr/share/zoneinfo to copy as /etc/localtime?
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
loki_val
Retired Dev
Retired Dev
Posts: 418
Joined: Mon Nov 13, 2006 11:03 am
Location: Denmark

  • Quote

Post by loki_val » Fri Sep 04, 2009 5:24 am

VinzC wrote:Does it mean the system uses the value in /etc/timezone to determine which object from /usr/share/zoneinfo to copy as /etc/localtime?
Yes.
Top
Tariella
Guru
Guru
Posts: 392
Joined: Sat Dec 10, 2005 10:31 am
Location: Europe/Austria

  • Quote

Post by Tariella » Fri Sep 04, 2009 7:47 am

I get the following error when openrc is starting dbus:

Failed to start message bus: Failed to bind socket "/var/run/dbus/
system_bus_socket": Read-only file system

dbus is in the runlevel sysinit and localmount is startet the line before
root filesystem is ext4

When I restart dbus manually after login it works just fine.

I guess the problem is that dbus is starting too early.
Should I add dbus to another runlevel or add another dependency to
keep it from starting too early?
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Fri Sep 04, 2009 1:14 pm

Normallt dbus is added to the default runlevel.
Top
Tariella
Guru
Guru
Posts: 392
Joined: Sat Dec 10, 2005 10:31 am
Location: Europe/Austria

  • Quote

Post by Tariella » Sat Sep 05, 2009 9:57 am

Thanks, changing the dbus runlevel to default solved my problem.
I wonder how it came to be in the sysinit runlevel in the first place. :?
Top
rahulthewall
Veteran
Veteran
User avatar
Posts: 1264
Joined: Thu Nov 01, 2007 11:28 pm
Location: Zürich
Contact:
Contact rahulthewall
Website

  • Quote

Post by rahulthewall » Mon Sep 07, 2009 1:51 pm

Thanks for this thread. The discussion between z_sfend and loki_val solved my timing issues. :)
Who shall guard the guards?
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Mon Sep 07, 2009 2:32 pm

There was an option to prevent services from being started by udev in /etc/conf.d/rc for example
  • RC_PLUG_SERVICES="!net.eth0"
Is there any equivalent in /etc/rc.conf ?
Last edited by Mike Hunt on Mon Sep 07, 2009 2:41 pm, edited 2 times in total.
Top
lefou
Apprentice
Apprentice
Posts: 207
Joined: Wed Feb 18, 2004 10:11 pm
Location: Germany, Lusatia
Contact:
Contact lefou
Website

  • Quote

Post by lefou » Mon Sep 07, 2009 2:34 pm

Mike Hunt wrote:There was an option to prevent services from being started by udev in /etc/conf.d/rc for example
  • RC_PLUG_SERVICES="!net.eth0"
Is there any equivalent in /etc/rc.conf ?
Yes:

Code: Select all

rc_hotplug="!net.eth0"
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Mon Sep 07, 2009 3:04 pm

Thanks, that's what I was looking for. :D
Top
man_jose
n00b
n00b
Posts: 30
Joined: Sat Jan 15, 2005 9:21 pm
Location: Alcala de Henares

Shutdown issue

  • Quote

Post by man_jose » Sun Sep 13, 2009 11:30 am

In order to avoid double-posting, could you please take a look to this post?

I guess it might be related with openrc.

Cheers,
José M.
Jose Maria Garcia Perez
Top
Xake
Guru
Guru
User avatar
Posts: 588
Joined: Wed Feb 11, 2004 10:14 am
Location: Göteborg, the rainy part of scandinavia

  • Quote

Post by Xake » Sat Sep 26, 2009 3:29 pm

Any comments on why openrc-0.5 is not in portage yet?

Too few devs, to little time as usual?
If I edit a post without commenting it mostly is spelling-errors.
And if I sounds rude I am sorry, that is just my personality speaking and has most of the time nothing to do with you personally.
Top
ppurka
Advocate
Advocate
Posts: 3257
Joined: Sun Dec 26, 2004 5:05 pm

  • Quote

Post by ppurka » Sat Sep 26, 2009 7:12 pm

Xake wrote:Any comments on why openrc-0.5 is not in portage yet?

Too few devs, to little time as usual?
It is a major change from 0.4.* from what I read. It will need a lot of testing to make sure the upgrade is smooth.
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Top
Xake
Guru
Guru
User avatar
Posts: 588
Joined: Wed Feb 11, 2004 10:14 am
Location: Göteborg, the rainy part of scandinavia

  • Quote

Post by Xake » Sat Sep 26, 2009 10:23 pm

ppurka wrote:
Xake wrote:Any comments on why openrc-0.5 is not in portage yet?

Too few devs, to little time as usual?
It is a major change from 0.4.* from what I read. It will need a lot of testing to make sure the upgrade is smooth.
That sounds more like a reason for placing it in package.mask, but not as a reason keeping it from portage...
If I edit a post without commenting it mostly is spelling-errors.
And if I sounds rude I am sorry, that is just my personality speaking and has most of the time nothing to do with you personally.
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Sun Sep 27, 2009 7:12 pm

Code: Select all

# eix openrc
[I] sys-apps/openrc
     Available versions:  0.5.0-r2 {debug kernel_FreeBSD kernel_linux ncurses pam unicode}
     Installed versions:  0.5.0-r2(04:56:36 08/07/09)(kernel_linux ncurses pam unicode -debug -kernel_FreeBSD)
     Homepage:            http://roy.marples.name/openrc
     Description:         OpenRC manages the services, startup and shutdown of a host
Top
Xake
Guru
Guru
User avatar
Posts: 588
Joined: Wed Feb 11, 2004 10:14 am
Location: Göteborg, the rainy part of scandinavia

  • Quote

Post by Xake » Sun Sep 27, 2009 7:38 pm

Mike Hunt wrote:

Code: Select all

# eix openrc
[I] sys-apps/openrc
     Available versions:  0.5.0-r2 {debug kernel_FreeBSD kernel_linux ncurses pam unicode}
     Installed versions:  0.5.0-r2(04:56:36 08/07/09)(kernel_linux ncurses pam unicode -debug -kernel_FreeBSD)
     Homepage:            http://roy.marples.name/openrc
     Description:         OpenRC manages the services, startup and shutdown of a host
The output of eix openrc does not look that way on my system.;) Where did you find the ebuild?

Edit:

Let me guess, you are using Funtoo?
If I edit a post without commenting it mostly is spelling-errors.
And if I sounds rude I am sorry, that is just my personality speaking and has most of the time nothing to do with you personally.
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Sun Sep 27, 2009 9:42 pm

Xake wrote:Let me guess, you are using Funtoo?
Yep, works great, boots in less than 2 seconds. :D
Top
ppurka
Advocate
Advocate
Posts: 3257
Joined: Sun Dec 26, 2004 5:05 pm

  • Quote

Post by ppurka » Sun Sep 27, 2009 10:23 pm

Mike Hunt wrote:
Xake wrote:Let me guess, you are using Funtoo?
Yep, works great, boots in less than 2 seconds. :D
8O
Is this on a desktop or a laptop? Can you post the output of your rc-update? Regarding boot time, I have noticed that my laptop takes a long time to boot especially because it has to load the touchpad drivers and all the thinkpad drivers (all of which combined probably take up more than 20 sec). Then fbcondecor takes 3sec more. Altogether a miserable 45sec to a working system (with wireless connected).
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Sun Sep 27, 2009 10:50 pm

Boots in less than 2 seconds from grub to the default runlevel.

filesystem check for JFS is really fast.
lvm2 mounts the volumes really fast.

Code: Select all

# grep name /proc/cpuinfo
model name      : AMD Athlon(tm) 64 Processor 3200+
Then whatever I have enabled in rc takes a more time

Code: Select all

# eselect rc show
Status of init scripts in runlevel "default"
  cherokee                  [started]
  consolekit                [started]
  dbus                      [started]
  dhcpcd                    [started]
  exim                      [started]
  gpm                       [started]
  hald                      [started]
  iptables                  [started]
  local                     [started]
  mysql                     [started]
  net.eth0                  [started]
  netmount                  [started]
  ntpd                      [started]
  slapd                     [started]
  squid                     [started]
  sshd                      [started]
  syslog-ng                 [started]
  vixie-cron                [started]
  xdm                       [started]
That's a lot of stuff, yet from grub to kdm is less than 10 seconds - it's really fast :)
Top
ppurka
Advocate
Advocate
Posts: 3257
Joined: Sun Dec 26, 2004 5:05 pm

  • Quote

Post by ppurka » Mon Sep 28, 2009 2:39 am

It seems doable for desktops. Not sure about laptops though. You can not have a functioning system before 40s. Even the 20-25s boot times in ubuntu are a sham,- mostly the GUI is brought up faster. Touchpads, etc still take till 40s to get properly initialized.
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Top
Post Reply

242 posts
  • Page 1 of 10
    • Jump to page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 10
  • Next

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic