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 ... , 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
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed May 27, 2009 11:19 am    Post subject: Reply with quote

There should be a * at the end of it ... I'll adjust my post
_________________
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
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Fri May 29, 2009 12:39 pm    Post subject: Reply with quote

I have a little problem with openrc and dialup.
General info:
Code:
#> emerge --info
Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r3-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-50-with-glibc2.2.5
Timestamp of tree: Thu, 28 May 2009 10:30:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://ftp.heanet.ie/pub/gentoo/"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 berkdb bzip2 cli cracklib crypt cups curl dbus dri flac fortran gdbm gif gpm gtk hal iconv isdnlog java jpeg midi mmx mplayer mudflap multilib ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python readline reflection session spl sse sse2 ssl svg sysfs syslog tcpd tiff unicode vim-syntax xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard evdev synaptics mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


This is /etc/conf.d/net for ppp0 interface:
Code:
dns_servers_ppp0="62.211.69.150 193.12.150.2"
#link_ppp0="/dev/ttyUSB1"
link_ppp0="/dev/ttyUSB0"

username_ppp0="teleconomy"
password_ppp0="teleconomy"
phone_number_ppp0="7020187187"

#username_ppp0="tele2internet"
#password_ppp0="tele2internet"
#phone_number_ppp0="7020221022"

config_ppp0="ppp"
pppd_ppp0="
   debug    
   defaultroute
   lock         
   115200"

chat_ppp0="
        ABORT BUSY
        ABORT ERROR
        ABORT 'NO ANSWER'
        ABORT 'NO CARRIER'
        ABORT 'NO DIALTONE'
        ABORT 'Invalid Login'
        ABORT 'Login incorrect'
        TIMEOUT 5
        '' ATZ
        OK 'AT M0 V1 E1 S0=0 &C1 &D2 +FCLASS=0'
        OK 'ATDT\T'
        TIMEOUT 60
        CONNECT ''
        TIMEOUT 5
        ~-- ''"



When I start /etc/init.d/net.ppp0, I get this message:
Code:
#> /etc/init.d/net.ppp0 restart
net.ppp0        |* Bringing down interface ppp0
net.ppp0        |*   Stopping pppd on ppp0                                                                                                               [ ok ]
net.ppp0        |*   Removing addresses
net.ppp0        |ppp0: error fetching interface information: Device not found
net.ppp0        |ppp0: error fetching interface information: Device not found
net.ppp0        |* Bringing up interface ppp0
net.ppp0        |*   Starting pppd in ppp0...                                                                                                            [ ok ]
net.ppp0        |*   Backgrounding ...
net.ppp0        |* WARNING: net.ppp0 has started, but is inactive

and connection works properly, but why this message?
_________________
LP
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri May 29, 2009 1:20 pm    Post subject: Reply with quote

Code:
ppp0: error fetching interface information: Device not found


That is an error and should be fixed. Could you add --debug to that and pastebin (don't post here - it's too big) the output?
The inactive is not an error.
_________________
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
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Fri May 29, 2009 2:05 pm    Post subject: Reply with quote

http://omploader.org/vMXF6dA/paste.txt
_________________
LP
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri May 29, 2009 2:28 pm    Post subject: Reply with quote

Fixed here
_________________
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
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Fri May 29, 2009 2:40 pm    Post subject: Reply with quote

Ok, thanks. When the next ebuild? :wink:

And for the inactive, why i get this message?
_________________
LP
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri May 29, 2009 2:53 pm    Post subject: Reply with quote

lucapost wrote:
Ok, thanks. When the next ebuild? :wink:


Normally about a week after I do a release. openrc-0.5 should be cut over the weekend :~

[qup=ote]And for the inactive, why i get this message?[/quote]

Because that's how PPP works.
When a network daemon goes inactive it generally means it's started fine and when the link is made the configuration will then continue.
_________________
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
JohnBlbec
Guru
Guru


Joined: 08 Feb 2003
Posts: 306

PostPosted: Mon Jun 01, 2009 5:47 pm    Post subject: reboot & shutdown does not work Reply with quote

i am not able to reboot or shutdown my pc. both commands show the right message but system is not rebooted (halted). kill -9 -1 works but it is not so funny to check fs every boot...

i am using openrc-0.4.3-r2 and baselayout-2.0.1

$ sudo rc-update show
Code:

         termencoding |                             boot                 
            killprocs |            shutdown                               
              hwclock |                             boot                 
               procfs |                             boot                 
                  xdm |        gui                                       
              numlock |        gui                       default         
            savecache |            shutdown                               
              modules |                             boot                 
                 fsck |                             boot                 
           ntp-client |        gui                       default         
           pulseaudio |        gui                       default         
                 udev |                     sysinit                       
                 dbus |        gui                       default         
        device-mapper |                             boot                 
             net.eth0 |        gui                       default         
                dmesg |                     sysinit                       
             bootmisc |                             boot                 
            alsasound |                             boot                 
                 mtab |                             boot                 
           vixie-cron |        gui                       default         
                  gpm |        gui                       default         
             mount-ro |            shutdown                               
             netmount |        gui                       default         
             hostname |                             boot                 
            syslog-ng |        gui                       default         
                 sshd |        gui                       default         
                devfs |                     sysinit                       
               net.lo |                             boot                 
                  lvm |                             boot                 
              keymaps |                             boot                 
                 root |                             boot                 
                 hald |        gui                       default         
          consolefont |                             boot                 
              portmap |        gui                       default         
                local |        gui                       default nonetwork
              urandom |                             boot                 
               sysctl |                             boot                 
                acpid |        gui                       default         
                 swap |                             boot                 
           localmount |                             boot


$ emerge --info
Code:

Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-glibc2.2.5
Timestamp of tree: Mon, 01 Jun 2009 13:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r14, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.dkm.cz/pub/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en cs"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync-excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 avahi bash-completion berkdb bzip2 cli cracklib crypt cups dbus dri gdbm gif gpm hal iconv isdnlog jpeg midi mmx mp3 mudflap multilib ncurses nls nptl nptlonly nvidia opengl openmp pam pcre perl png pppd pulseaudio python readline reflection session slang spl sse sse2 ssl symlink sysfs tcpd threads tiff truetype unicode xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
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: Mon Jun 01, 2009 6:19 pm    Post subject: Reply with quote

temporary solution:

do the magic sysrq key combo:

magic sysrq key + reisub
_________________
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


Last edited by kernelOfTruth on Mon Jun 01, 2009 7:44 pm; edited 1 time in total
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 Jun 01, 2009 7:39 pm    Post subject: Reply with quote

Sounds like you've not updated your /etc/inittab

It should have the commands /sbin/halt or /sbin/reboot in
_________________
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
JohnBlbec
Guru
Guru


Joined: 08 Feb 2003
Posts: 306

PostPosted: Tue Jun 02, 2009 3:06 pm    Post subject: Reply with quote

UberLord wrote:
Sounds like you've not updated your /etc/inittab

It should have the commands /sbin/halt or /sbin/reboot in


i think my /etc/inittab is ok. it has the same content as my /etc/inittab at work where i am using the same version of openrc and baselayout but the desktop is 32bit and not 64bit.
the pc at work works correctly...

$ cat /etc/inittab
Code:

# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/files/inittab-2.86-r12,v 1.2 2008/12/18 20:26:27 robbat2 Exp $

# Default runlevel.
id:5:initdefault:

# System initialization, mount local filesystems, etc.
si::sysinit:/sbin/rc sysinit

# Further system initialization, brings up the boot runlevel.
rc::bootwait:/sbin/rc boot

l0:0:wait:/sbin/rc shutdown
l0s:0:wait:/sbin/halt -dhip
l1:S1:wait:/sbin/rc single
l2:2:wait:/sbin/rc nonetwork
l3:3:wait:/sbin/rc default
l4:4:wait:/sbin/rc default
l5:5:wait:/sbin/rc gui
l6:6:wait:/sbin/rc reboot
l6r:6:wait:/sbin/reboot -dk
#z6:6:respawn:/sbin/sulogin

# new-style single-user
su0:S:wait:/sbin/rc single
su1:S:wait:/sbin/sulogin

# TERMINALS
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux

# SERIAL CONSOLES
#s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
#s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100

# What to do at the "Three Finger Salute".
ca:12345:ctrlaltdel:/sbin/shutdown -r now

# Used by /etc/init.d/xdm to control DM startup.
# Read the comments in /etc/init.d/xdm for more
# info. Do NOT remove, as this will start nothing
# extra at boot if /etc/init.d/xdm is not added
# to the "default" runlevel.
x:a:once:/etc/X11/startDM.sh


Last edited by JohnBlbec on Tue Jun 02, 2009 3:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
JohnBlbec
Guru
Guru


Joined: 08 Feb 2003
Posts: 306

PostPosted: Tue Jun 02, 2009 3:07 pm    Post subject: Reply with quote

kernelOfTruth wrote:
temporary solution:

do the magic sysrq key combo:

magic sysrq key + reisub


it means it is a known bug? :o(
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: Tue Jun 02, 2009 4:02 pm    Post subject: Reply with quote

JohnBlbec wrote:
kernelOfTruth wrote:
temporary solution:

do the magic sysrq key combo:

magic sysrq key + reisub


it means it is a known bug? :o(


no - not that I know of :P

this only helps preventing the need for a long fsck on every boot :idea:
_________________
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
JohnBlbec
Guru
Guru


Joined: 08 Feb 2003
Posts: 306

PostPosted: Tue Jun 02, 2009 4:06 pm    Post subject: Reply with quote

kernelOfTruth wrote:
JohnBlbec wrote:
kernelOfTruth wrote:
temporary solution:

do the magic sysrq key combo:

magic sysrq key + reisub


it means it is a known bug? :o(


no - not that I know of :P

this only helps preventing the need for a long fsck on every boot :idea:


sometimes works to execute "reboot" a several time, but shutdown does work and i can execute it for example 100x :o(
"init 6" sometimes works too...
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 Jun 02, 2009 4:45 pm    Post subject: Reply with quote

JohnBlbec wrote:
UberLord wrote:
Sounds like you've not updated your /etc/inittab

It should have the commands /sbin/halt or /sbin/reboot in


i think my /etc/inittab is ok.


Yes, it looks ok.
Could you post an exact error, or the last few lines printed?
_________________
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
JohnBlbec
Guru
Guru


Joined: 08 Feb 2003
Posts: 306

PostPosted: Tue Jun 02, 2009 5:39 pm    Post subject: Reply with quote

UberLord wrote:
JohnBlbec wrote:
UberLord wrote:
Sounds like you've not updated your /etc/inittab

It should have the commands /sbin/halt or /sbin/reboot in


i think my /etc/inittab is ok.


Yes, it looks ok.
Could you post an exact error, or the last few lines printed?


unfortunately, no error message but a standard message that is produced when you execute "reboot" or "shutdown -h now".
the command finished with result 0 and i can work in the term...

Code:

rpc-linux ~ # reboot

Broadcast message from root (pts/0) (Tue Jun  2 19:25:42 2009):

The system is going down for reboot NOW!
rpc-linux ~ # echo $?
0
rpc-linux ~ # echo "i can work..."
i can work...
rpc-linux ~ #


it is crazy!

now i ran "shutdown -h now" and my pc went off. i do not understand why...

...next boot and the second experiment. i am going to excecute only "shutdown -h now"

Code:

rpc-linux ~ # shutdown -h now

Broadcast message from root (pts/0) (Tue Jun  2 19:32:19 2009):

The system is going down for system halt NOW!
rpc-linux ~ #


and as you can see i am still writing the message...

Code:

rpc-linux ~ # tail -f /var/log/messages
Jun  2 19:32:07 rpc-linux su[7311]: pam_unix(su:session): session opened for user root by rpolasek(uid=0)

Broadcast message from root (pts/0) (Tue Jun  2 19:32:19 2009):

The system is going down for system halt NOW!
Jun  2 19:32:19 rpc-linux shutdown[7338]: shutting down for system halt
Jun  2 19:32:20 rpc-linux init: Switching to runlevel: 0
Jun  2 19:32:21 rpc-linux sshd[7086]: Received signal 15; terminating.


it seems it is waiting for something - i can still work :o( but the second command, for example "reboot" perform reboot...

[EDITED]

the result
1) if i want to reboot, i must execute: "shutdown -h now; reboot" but fs checks during boot
2) if i want to halt pc, i must to execute: "reboot; shutdown -h now" and no fs checks :o)
3) to execute: "reboot; reboot" do nothing or sometimes perform a reboot
4) to execute: "shutdown -h now; shutdown -h now" do nothing
Back to top
View user's profile Send private message
JohnBlbec
Guru
Guru


Joined: 08 Feb 2003
Posts: 306

PostPosted: Thu Jun 04, 2009 1:52 pm    Post subject: Reply with quote

JohnBlbec wrote:
UberLord wrote:
JohnBlbec wrote:
UberLord wrote:
Sounds like you've not updated your /etc/inittab

It should have the commands /sbin/halt or /sbin/reboot in


i think my /etc/inittab is ok.


Yes, it looks ok.
Could you post an exact error, or the last few lines printed?


unfortunately, no error message but a standard message that is produced when you execute "reboot" or "shutdown -h now".
the command finished with result 0 and i can work in the term...

Code:

rpc-linux ~ # reboot

Broadcast message from root (pts/0) (Tue Jun  2 19:25:42 2009):

The system is going down for reboot NOW!
rpc-linux ~ # echo $?
0
rpc-linux ~ # echo "i can work..."
i can work...
rpc-linux ~ #


it is crazy!

now i ran "shutdown -h now" and my pc went off. i do not understand why...

...next boot and the second experiment. i am going to excecute only "shutdown -h now"

Code:

rpc-linux ~ # shutdown -h now

Broadcast message from root (pts/0) (Tue Jun  2 19:32:19 2009):

The system is going down for system halt NOW!
rpc-linux ~ #


and as you can see i am still writing the message...

Code:

rpc-linux ~ # tail -f /var/log/messages
Jun  2 19:32:07 rpc-linux su[7311]: pam_unix(su:session): session opened for user root by rpolasek(uid=0)

Broadcast message from root (pts/0) (Tue Jun  2 19:32:19 2009):

The system is going down for system halt NOW!
Jun  2 19:32:19 rpc-linux shutdown[7338]: shutting down for system halt
Jun  2 19:32:20 rpc-linux init: Switching to runlevel: 0
Jun  2 19:32:21 rpc-linux sshd[7086]: Received signal 15; terminating.


it seems it is waiting for something - i can still work :o( but the second command, for example "reboot" perform reboot...

[EDITED]

the result
1) if i want to reboot, i must execute: "shutdown -h now; reboot" but fs checks during boot
2) if i want to halt pc, i must to execute: "reboot; shutdown -h now" and no fs checks :o)
3) to execute: "reboot; reboot" do nothing or sometimes perform a reboot
4) to execute: "shutdown -h now; shutdown -h now" do nothing


[EDITED 04/06/09]

no advices?
Back to top
View user's profile Send private message
JohnBlbec
Guru
Guru


Joined: 08 Feb 2003
Posts: 306

PostPosted: Thu Jun 04, 2009 6:33 pm    Post subject: Reply with quote

i am continuing to investigate the issue. it seems one of the alsa module makes me troubles. below is my rc.log after after step 2) "reboot; shutdown -h now" and then power on...

Code:

rc shutdown logging started at Thu Jun  4 20:18:51 2009

* Stopping local...
 [ ok ]
* Stopping vixie-cron...
 [ ok ]
* Saving random seed...
 [ ok ]
* Deactivating swap devices...
 [ ok ]
* Stopping sshd...
 [ ok ]
* Stopping pulseaudio...
 [ ok ]
* Disabling numlock on ttys...
 [ ok ]
* Storing ALSA Mixer Levels...
 [ ok ]
* Killing processes using ALSA...
 [ ok ]
* Unloading ALSA modules...
* rc: caught SIGTERM, aborting

rc shutdown logging stopped at Thu Jun  4 20:18:58 2009

rc shutdown logging started at Thu Jun  4 20:18:59 2009

* Stopping slim...
 [ ok ]
* Unmounting network filesystems...
 [ ok ]
* Stopping portmap...
 [ ok ]
* Stopping Hardware Abstraction Layer daemon...
 [ ok ]
* Stopping gpm...
 [ ok ]
* Stopping avahi-daemon...
 [ ok ]
* Bringing down interface lo
*   Removing addresses
* Bringing down interface eth0
*   Stopping dhcpcd on eth0...
 [ ok ]
*   Removing addresses
* Stopping D-BUS system messagebus...
 [ ok ]
* Storing ALSA Mixer Levels...
 [ ok ]
* Killing processes using ALSA...
 [ ok ]
* Unloading ALSA modules...
ERROR: Removing 'snd_hda_codec_idt': Device or resource busy
 [ ok ]
* Stopping acpid...
 [ ok ]
* Stopping syslog-ng...
 [ ok ]
* Unmounting loopback devices
* Unmounting filesystems
*   Unmounting /home/rpolasek/Desktop/media...
 [ ok ]
*   Unmounting /var/tmp/ccache...
 [ ok ]
*   Unmounting /var/tmp...
 [ ok ]
*   Unmounting /var...
 [ ok ]
*   Unmounting /tmp...
 [ ok ]
*   Unmounting /usr/portage/distfiles...
 [ ok ]
*   Unmounting /usr/portage...
 [ ok ]
*   Unmounting /usr...
 [ ok ]
*   Unmounting /opt...
 [ ok ]
*   Unmounting /home...
 [ ok ]
*   lvm uses addon code which is deprecated
*   and may not be available in the future.
* Shutting down the Logical Volume Manager
*   Shutting Down logical volume: /dev/raid5/ccache ...
 [ ok ]
*   Shutting Down logical volume: /dev/raid5/distfiles ...
 [ ok ]
*   Shutting Down logical volume: /dev/raid5/home ...
 [ ok ]
*   Shutting Down logical volume: /dev/raid5/media ...
 [ ok ]
*   Shutting Down logical volume: /dev/raid5/opt ...
 [ ok ]
*   Shutting Down logical volume: /dev/raid5/portage ...
 [ ok ]
*   Shutting Down logical volume: /dev/raid5/swap ...
 [ ok ]
*   Shutting Down logical volume: /dev/raid5/tmp ...
 [ ok ]
*   Shutting Down logical volume: /dev/raid5/usr ...
 [ ok ]
*   Shutting Down logical volume: /dev/raid5/var ...
 [ ok ]
*   Shutting Down logical volume: /dev/raid5/vartmp ...
 [ ok ]
*   Shutting Down volume group: raid5 ...
 [ ok ]
* Finished Shutting down the Logical Volume Manager
* Stopping udevd...
 [ ok ]

rc shutdown logging stopped at Thu Jun  4 20:19:06 2009


rc boot logging started at Thu Jun  4 22:20:42 2009

* Setting system clock using the hardware clock [Local Time]...
 [ ok ]
* Autoloaded 0 module(s)
*   lvm uses addon code which is deprecated
*   and may not be available in the future.
* Setting up the Logical Volume Manager...
  Locking type 1 initialisation failed.
 [ ok ]
*   device-mapper uses addon code which is deprecated
*   and may not be available in the future.
* Checking local filesystems ...
/dev/sdc1: clean, 8896/250480 files, 206487/999995 blocks
/dev/sdb1: clean, 41/8388608 files, 548867/33553752 blocks
/dev/raid5/home: clean, 8875/6553600 files, 17506212/26214400 blocks
/dev/raid5/opt: clean, 3060/262144 files, 169212/1048576 blocks
/dev/raid5/usr: clean, 191914/655360 files, 1625708/2621440 blocks
/dev/raid5/portage: clean, 134049/199680 files, 325388/1048576 blocks
/dev/raid5/distfiles: clean, 1120/4096 files, 662332/1048576 blocks
/dev/raid5/tmp: clean, 14/262144 files, 18509/1048576 blocks
/dev/raid5/var: clean, 52068/262144 files, 327192/1048576 blocks
/dev/raid5/vartmp: clean, 1823/524288 files, 54129/2097152 blocks
/dev/raid5/ccache: clean, 262143/262144 files, 724677/1048576 blocks
/dev/raid5/media: clean, 20896/67108864 files, 124900653/268435456 blocks
 [ ok ]
* Remounting root filesystem read/write...
 [ ok ]
* Updating /etc/mtab...
 [ ok ]
* Mounting local filesystems...
 [ ok ]
* Setting hostname to rpc-linux...
 [ ok ]
* Configuring kernel parameters...
 [ ok ]
* Creating user login records...
 [ ok ]
* Cleaning /var/run...
 [ ok ]
* Wiping /tmp directory...
 [ ok ]
* Loading ALSA modules...
*   Loading: snd-card-0...
 [ ok ]
*   Loading: snd-card-0...
 [ ok ]
*   Loading: snd-seq-oss...
 [ ok ]
*   Loading: snd-pcm-oss...
 [ ok ]
 [ ok ]
* Restoring Mixer Levels...
 [ ok ]
* Setting terminal encoding [UTF-8]...
 [ ok ]
* Setting console font [ter-v16b]...
 [ ok ]
* Loading key mappings [us]...
 [ ok ]
* Setting keyboard mode [UTF-8]...
 [ ok ]
* Bringing up interface lo
*   127.0.0.1/8...
 [ ok ]
*   Adding routes
*     127.0.0.0/8 via 127.0.0.1...
 [ ok ]
* Mounting USB device filesystem [usbfs]...
 [ ok ]
* Activating swap devices...
 [ ok ]
* Initializing random number generator...
 [ ok ]

rc boot logging stopped at Thu Jun  4 20:20:47 2009


rc gui logging started at Thu Jun  4 20:20:47 2009

* Starting syslog-ng...
 [ ok ]
* Starting acpid...
 [ ok ]
* Starting D-BUS system messagebus...
 [ ok ]
* Starting Hardware Abstraction Layer daemon...
 [ ok ]
* Bringing up interface eth0
*   dhcp...
*     Running dhcpcd...
eth0: dhcpcd 4.0.13 starting
eth0: broadcasting for a lease
eth0: offered x.x.x.x from x.x.x.x
eth0: acknowledged x.x.x.x from x.x.x.x
eth0: checking x.x.x.x is available on attached networks
eth0: leased x.x.x.x for 86400 seconds
 [ ok ]
*     received address x.x.x.x/x
 [ ok ]
* Setting clock via the NTP client 'ntpdate'...
 [ ok ]
* Starting portmap...
 [ ok ]
* Mounting network filesystems...
 [ ok ]
* Starting gpm...
 [ ok ]
* Setting up slim...
 [ ok ]
* Enabling numlock on ttys...
 [ ok ]
* Starting avahi-daemon...
 [ ok ]
* Starting pulseaudio...
 [ ok ]
* Starting sshd...
 [ ok ]
* Starting vixie-cron...
 [ ok ]
* Starting local...

/dev/sda:
 issuing standby command
 [ ok ]

rc gui logging stopped at Thu Jun  4 20:21:04 2009


any idea? anybody with the similar issue?

[EDITED 06/05/09]

Bugzilla Bug 264674
Bugzilla Bug 253535

a temporary solution: edit /etc/conf.d/alsasound
Code:

UNLOAD_ON_STOP="no"
KILLPROC_ON_STOP="no"
Back to top
View user's profile Send private message
JohnBlbec
Guru
Guru


Joined: 08 Feb 2003
Posts: 306

PostPosted: Sun Jun 07, 2009 2:17 pm    Post subject: Reply with quote

one issue is solved but the second problem is appeared after upgrade to gentoo-sources-2.6.29-r5 and openrc-0.4.3-r2 - a network :o(

my notebook has two interfaces:
1) eth0 (wired, e1000e)
2) wlan0 (wireless, iwl3945)

and the second module for wlan0 is not automatically loaded during boot process. i have net.eth0 and net.wlan0 in my default boot level and i am using rc_hotplug="net.*".
(note: i am using netplug too to spy eth* to control wlan0 and the configuration worked correctly before upgrade)

this is what i can see during boot (eth cable is not connected because i use wifi more often):
Code:

.
.
* Device initiated services: net.eth0 net.wlan0
.
.
* Bringing up interface eth0
*    Running preup...
*    Start netplug on eth0...
*      Backgrounding on eth0...
* WARNING: net.eth0 has started, but inactive
.
.
* Bringing up interface wlan0
*   Running preup...
*   ERROR: interface wlan0 does not exist
*   Ensure that you have loaded the correct kernel module for your hardware
* ERROR: net.wlan failed to start
.
.


after boot when i execute modprobe iwl3945 and ifplug wlan0 up my wifi works correctly. there is only one wifi driver (intel 3945abg = iwl3945) compiled in my kernel.
i have read the whole thread, of course, but w/o solution :o(

any advice, please?
Back to top
View user's profile Send private message
Ivanich_
Tux's lil' helper
Tux's lil' helper


Joined: 10 Feb 2006
Posts: 104
Location: Ukraine, Odessa

PostPosted: Thu Jun 11, 2009 12:51 pm    Post subject: Reply with quote

openrc-0.5 network setup compatible with 0.4.x version? In new version of openrc i have no idea how to setup pppoe connection, old config was simple and there were some examples.
Code:

link_ppp0="eth0"
plugins_ppp0="pppoe"
pppd_ppp0="
noauth
defaultroute
ipcp-accept-remote
ipcp-accept-local
lcp-echo-interval 15
lcp-echo-failure 3
persist
maxfail 0
holdoff 5
lock
mru 1492
mtu 1492
debug"
Back to top
View user's profile Send private message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 488
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Sun Jun 21, 2009 10:56 pm    Post subject: no net.lo Reply with quote

I'm almost done setting up a nfs/rsync/ftp server

i've installed openrc-9999 and baselayout 2.0.1

According to http://www.gentoo.org/doc/en/openrc-migration.xml i need to do:

Code:
# cd /etc/init.d
# ln -s net.lo net.eth0


however, here is what i see:

Code:
sysresccd linux # rc-update add net.eth0 default
* rc-update: service `net.eth0' does not exist
sysresccd linux # ls -l /etc/init.d/net.*
lrwxrwxrwx 1 root root 6 2009-06-19 13:58 /etc/init.d/net.eth0 -> net.lo
sysresccd linux #


This is using the new daily builds, maybe as much as 2 days old.

what's the best way to get net.lo? emerge something? copy/paste?

in the past i solved this problem of it missing with wicd, but that is unacceptable in this case because it needs X, which i will not install on a server

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'
Back to top
View user's profile Send private message
farhaven
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2008
Posts: 127

PostPosted: Wed Jul 08, 2009 11:54 pm    Post subject: Reply with quote

I'm having a little problem with openrc > 0.3.0 here. When I use halt or reboot, the system doesn't completely shut down. It executes all rc stuff with the "stop" parameter, and all daemons stop properly. When it reaches localmount, / is remounted ro as it should and everything looks fine. At that point, with openrc <= 0.3.0, the system powered off or rebooted, depending on what I told it to do. With openrc > 0.3.0 however, init just prints the message "No more processes left in this runlevel" and does nothing. It just sits there and I have to use SysRq + o to make it power off. This is just a minor issue, as I usually suspend to ram, but if I run very low on battery and shut the system down because I don't want to deep-discharge the batt, this can be quite annoying. Is there something I might have overlooked?
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 Jul 09, 2009 12:28 am    Post subject: Reply with quote

Emerge an up to date sysvinit and etc-update /etc/inittab. Ensure that you see the commands /sbin/halt AND /sbin/reboot in there.
_________________
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
farhaven
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2008
Posts: 127

PostPosted: Thu Jul 09, 2009 12:43 am    Post subject: Reply with quote

sysvinit is already the latest version (2.68-r12) and there's no update to /etc/inittab. Could someone paste a working inittab?
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 Jul 09, 2009 12:45 am    Post subject: Reply with quote

To ensure no error, move /etc/inittab to /tmp and emerge -1 sysvinit.
Then ensure that /etc/inittab exists - if so, problem should be fixed.
_________________
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
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 ... , 31, 32, 33  Next
Page 32 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