View previous topic :: View next topic |
Author |
Message |
Gustavo Guillermo Pérez n00b
Joined: 17 Jul 2004 Posts: 25 Location: Mexico/Argentina
|
Posted: Mon Aug 09, 2010 8:47 pm Post subject: Init does not reset/poweroff machine, while by hand works |
|
|
If I do a sysreq:
ctrl+alt+sysreq+b
(reboots the mainboard)
ctrl+alt+sysreq+o
(turn off the mainboard)
poweroff -f
(turn off the mainboard)
reboot -f
(reboots the mainboard)
but executing on keyboard ctrl+alt+del or executing in a terminal reboot or halt init left the system turned on INIT: no more processes left in this runlevel
Code: | mbu5 # reboot
Broadcast message from root@mbu5 (ttyS0) (Mon Aug 9 20:33:20 2010):
The system is going down for reboot NOW!
INIT: Sending p * Stopping local ...
ok
* Saving random seed ...
ok
* Deactivating swap devices ...
ok
* Stopping squid ...
* Waiting for squid to shutdown ......
ok
* Stopping gpm ...
ok
* Stopping ConsoleKit daemon ...
ok
* Stopping D-BUS system messagebus ...
ok
* Stopping apache2 ...
ok
* Stopping sshd ...
ok
* Stopping ...
* Stopping mysqld (0)
ok
* Unmounting network filesystems ...
ok
* Stopping named ...
ok
* Bringing down interface eth0
* Stopping dhcpcd on eth0 ...
ok
* Bringing down interface lo
* Stopping acpid ...
ok
* sysklogd -> stop: klogd ...
ok
* sysklogd -> stop: syslogd ...
ok
* Unmounting loopback devices
* Unmounting filesystems
* Unmounting /etc ...
ok
* Stopping udevd ...
ok
* Terminating remaining processes ...
ok
* Killing remaining processes ...
ok
* Saving dependency cache ...
ok
* Remounting remaining filesystems read-only ...
* Remounting / read only ...
ok
ok
INIT: no more processes left in this runlevel
|
emerge --info
Code: | Portage 2.1.8.3 (uclibc/x86, gcc-4.4.3, uclibc-0.9.30.1-r1, 2.6.32.8-mmx i686)
=================================================================
System uname: Linux-2.6.32.8-mmx-i686-VIA_Eden_Processor_1200MHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 21 Jun 2010 23:45:02 +0000
app-shells/bash: 4.1_p5
dev-lang/python: 2.4.4-r6, 2.6.5-r2, 3.1.2-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.6.1-r1
sys-apps/sandbox: 2.2
sys-devel/autoconf: 2.65
sys-devel/automake: 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.1.2, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.33
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-Os -mtune=i386 -pipe"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -mtune=i386 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests autoconfig distlocks fixpackages news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gmirror:1@192.168.1.3/ ftp://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
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.europe.gentoo.org/gentoo-portage"
USE="apache2 berkdb bluetooth calendar cli consolekit cracklib crypt ctype curl curlwrappers cxx dbus djvu dri exif expat fftw filter flatfile fontconfig fpx ftp gcj gd gmp gnutls gpm gs hash imap inifile injection ipv6 jbig jpeg jpeg2k json kde lcms libssh2 logwatch lqr lua madwifi mng modules mudflap multicall mysql mysqli ncurses objc objc++ objc-gc openexr opengl openmp pam pcre perl pic png postgres python qt3support qt4 raw readline reflection resolvconf session simplexml slang spell spl sql sqlite ssl static-libs svg tcpd threads thumbnail tidy tiff tk tokenizer tools truetype uclibc unicode webkit wmf wordexp x86 xml xmlreader xmlrpc xmlwriter xorg zip zlib" 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="*" APACHE2_MPMS="worker" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
|
SYSVINIT PACKAGE
Code: | ebuild R sys-apps/sysvinit-2.87-r3 USE="(-ibm) (-selinux) -static" 0 kB |
Any tip will be appreciated. _________________ I learn something new every day. Thanks God. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Mon Aug 09, 2010 9:36 pm Post subject: |
|
|
don't forget to run etc-update, else things like that could happen.
and try to shutdown -r now instead
nothing related, but why mtune=i386 where you have a kernel tune for i686 and your compiler tune for i686 with a chost tune for i386 ?
if you need, check -> http://www.gentoo.org/doc/en/change-chost.xml (i'm not familiar with your cpu, but your setup looks weird, but it might be a need for your cpu, forget it if it is)
and the unofficial wiki (more or less accurate) http://en.gentoo-wiki.com/wiki/Safe_Cflags/Via#Eden |
|
Back to top |
|
|
Gustavo Guillermo Pérez n00b
Joined: 17 Jul 2004 Posts: 25 Location: Mexico/Argentina
|
Posted: Mon Aug 09, 2010 10:05 pm Post subject: CPU does not matter it is just because other CPUs |
|
|
I'm dealing with an AMD GEODE and other too low performance proccessors, but in any case I can manually turn off and or reboot.
mbu5 # etc-update
Scanning Configuration files...
Exiting: Nothing left to do; exiting.
mbu5 # shutdown -r now
Code: | Broadcast message from root@mbu5 (ttyS0) (Mon Aug 9 22:02:06 2010):
The system is going down for reboot NOW!
INIT: * Stopping local ...
ok
* Saving random seed ...
ok
* Deactivating swap devices ...
ok
* Stopping squid ...
* Waiting for squid to shutdown ......
ok
* Stopping gpm ...
ok
* Stopping ConsoleKit daemon ...
ok
* Stopping D-BUS system messagebus ...
ok
* Stopping apache2 ...
ok
* Stopping sshd ...
ok
* Stopping ...
* Stopping mysqld (0)
ok
* Unmounting network filesystems ...
ok
* Stopping named ...
ok
* Bringing down interface eth0
* Stopping dhcpcd on eth0 ...
ok
* Bringing down interface lo
* Stopping acpid ...
ok
* sysklogd -> stop: klogd ...
ok
* sysklogd -> stop: syslogd ...
ok
* Unmounting loopback devices
* Unmounting filesystems
* Unmounting /etc ...
ok
* Stopping udevd ...
ok
* Terminating remaining processes ...
ok
* Killing remaining processes ...
ok
* Saving dependency cache ...
ok
* Remounting remaining filesystems read-only ...
* Remounting / read only ...
ok
ok
INIT: no more processes left in this runlevel
|
The same, computer still turned on with INIT: no more processes left in this runlevel _________________ I learn something new every day. Thanks God. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Tue Aug 10, 2010 12:43 am Post subject: |
|
|
and that's good for amd geode ?
Code: | System uname: Linux-2.6.32.8-mmx-i686-VIA_Eden_Processor_1200MHz-with-gentoo-2.0.1 |
|
|
Back to top |
|
|
Gustavo Guillermo Pérez n00b
Joined: 17 Jul 2004 Posts: 25 Location: Mexico/Argentina
|
Posted: Tue Aug 10, 2010 4:48 pm Post subject: on amd geode I have another kernel. |
|
|
So, in the other box I have another kernel compiled for AMD geode, but binaries works properly on both boxes, I made a simple script to deal with reboot but is not proper.
Code: | #!/bin/bash
/var/lib/compunauta/bin/ledmanager 1 0
/var/lib/compunauta/bin/ledmanager 2 0
/var/lib/compunauta/bin/ledmanager 3 0
/etc/init.d/squid stop
/var/lib/compunauta/bin/ledmanager 3 1 blink
/etc/init.d/named stop
/var/lib/compunauta/bin/ledmanager 2 1 blink
/etc/init.d/mysql stop
/var/lib/compunauta/bin/ledmanager 1 1 blink
/etc/init.d/apache2 stop
/var/lib/compunauta/bin/ledmanager 1 1 blink
sync; sync; sync; reboot -f; |
But I do prefer to execute just reboot or halt _________________ I learn something new every day. Thanks God. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Tue Aug 10, 2010 5:57 pm Post subject: |
|
|
did you try enabling the x86 reboot fixup in kernel ? (i really don't know if that might help you, but i suppose it won't kill enabling it)
CONFIG_X86_REBOOTFIXUPS=y |
|
Back to top |
|
|
Gustavo Guillermo Pérez n00b
Joined: 17 Jul 2004 Posts: 25 Location: Mexico/Argentina
|
Posted: Tue Aug 10, 2010 6:04 pm Post subject: |
|
|
Yes of course with/without in booth cases I can reboot with reboot -f or poweroff -f (to power off), but init doesn't. Rebuilding init package wasn't helpful.
Using the same builded kernel on diferent gentoo installations, init does not have any problem on doing the last job. _________________ I learn something new every day. Thanks God. |
|
Back to top |
|
|
|