You are not logged in.

#1 2008-02-07 08:57:28

clownfish
Member
Registered: 2006-09-04
Posts: 72

missing /usr/bin/reboot

i use GNOME and arch is up to date as it can be after doing a "pacman -Syu".

when i use GNOME's shutdown-dialog to reboot the system, GNOME and X stop as they should, but then the system gives a message, "Command failed /usr/bin/reboot" and a short description that it wasn't found.
the system then takes a short breath of about 5-10 seconds and reboots as it should.

well, there is no /usr/bin/reboot on my harddisk, just /sbin/reboot...why?
had the same thing some days ago on another system. was /usr/bin/reboot removed during one of the last updates and GNOME still tries to use it instead of /sbin/reboot?

Thanks!

Cheers!

Offline

#2 2008-02-07 14:37:54

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: missing /usr/bin/reboot

$ whereis reboot
reboot: /sbin/reboot /usr/man/man8/reboot.8.gz /usr/share/man/man2/reboot.2.gz

Why? Because reboot can't be used by anyone but a superuser (the 'S' in 'sbin'). Unless of course you are using sudo and the like. It looks like this is some GNOME configuration issue though, and you should be able to specify the reboot program there.

Offline

#3 2008-02-07 14:57:35

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: missing /usr/bin/reboot

http://cvs.archlinux.org/cgi-bin/viewcv … cvs-markup

I find it interesting that it passes --with-reboot-command=reboot --with-halt-command=halt in the PKGBUILD, yet it's looking for /usr/bin/reboot on your system.  You're not using some custom repo for gnome-session, are you?  If not, then we might want to change the PKGBUILD to have --with-reboot-command=/sbin/reboot --with-halt-command=/sbin/halt

-edit-

If you're using the stock gnome-session package, then maybe file a bugreport asking to do the above.  I bet you don't have /sbin/ in your normal path, do you?

Last edited by Cerebral (2008-02-07 14:58:45)

Offline

#4 2008-02-07 22:15:01

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: missing /usr/bin/reboot

I had this problem as well and couldn't work out what I had done wrong - I hadn't been fiddling with any settings, honest.  Anyway, it first occurred last Saturday when I shutdown my PC after these updates:

[2008-02-02 07:49] synchronizing package lists
[2008-02-02 07:49] starting full system upgrade
[2008-02-02 07:50] upgraded bash (3.2.025-4 -> 3.2.033-2)
[2008-02-02 07:50] warning: /etc/profile installed as /etc/profile.pacnew
[2008-02-02 07:50] warning: directory permissions differ on var/lock/
filesystem: 775  package: 755
[2008-02-02 07:50] upgraded filesystem (2007.11-3 -> 2007.11-6)
[2008-02-02 07:50] upgraded groff (1.19.2-3 -> 1.19.2-4)
[2008-02-02 07:50] upgraded man (1.6f-1 -> 1.6f-2)
[2008-02-02 07:50] upgraded mkinitcpio (0.5.17-1 -> 0.5.17-2)
[2008-02-02 07:50] upgraded mpg123 (1.1.0-3 -> 1.2.0-1)

and not only was there an error about the missing file but gdm-binary segfaulted.  Here's the entry from everything.log:

Feb  2 09:53:50 gconfd (david-9810): Exiting
Feb  2 09:53:50 darkstar gdm-binary[9706]: WARNING: Command failed /usr/bin/poweroff: Failed to execute child process "/usr/bin/poweroff" (No such file or directory)
Feb  2 09:53:50 darkstar shutdown[11387]: shutting down for system halt
Feb  2 09:53:50 darkstar init: Switching to runlevel: 0
Feb  2 09:53:50 darkstar gdm-binary[9706]: segfault at 0000000000000031 rip 00002aaccdefa090 rsp 00007fffdfb2ce28 error 4

Thing is, looking back through older log entries, the warning about failing to execute /usr/bin/reboot or /usr/bin /poweroff is always there on reboot/shutdown but I had never before seen it echoed to the screen.  Anyway, I wasn't sure where to report the bug but made my own fix in the meantime by adding the following to the daemon section of /etc/gdm/defaults.conf

RebootCommand=/sbin/reboot
HaltCommand=/sbin/poweroff

The other consequence of those Saturday updates, which hasn't gone away yet, is that the normal shutdown messages - stopping this, stopping that etc. - don't always appear.  It's not consistent but more often than not gnome will drop to a console with a login prompt and my PC will shutdown a few seconds later  If I don't start gnome and just run /sbin/poweroff from the console then the usual messages will appear.  As far as I can tell, however, my PC is shutting down properly despite the lack of messages.

EDIT: And /sbin is in my path.
EDIT 1: And the segfaults continue (I thought that they'd gone away):

Feb  6 23:27:08 gconfd (david-9811): Exiting
Feb  6 23:27:09 darkstar shutdown[15679]: shutting down for system halt
Feb  6 23:27:09 darkstar init: Switching to runlevel: 0
Feb  6 23:27:09 darkstar gdm-binary[9706]: segfault at 0000000000000021 rip 00002b63ab165090 rsp 00007fff028bfe48 error 4

Last edited by azleifel (2008-02-07 22:35:41)

Offline

#5 2008-02-08 00:43:03

F
Member
Registered: 2006-10-09
Posts: 322

Re: missing /usr/bin/reboot

I didn't even read this thread but I don't think this was mentioned:

in your .{$SHELL}rc

alias 'reboot'='shutdown -R now'

done and done.

Last edited by F (2008-02-08 00:43:19)

Offline

#6 2008-02-08 16:46:02

clownfish
Member
Registered: 2006-09-04
Posts: 72

Re: missing /usr/bin/reboot

i use the stock gnome and gnome-extra packages. nothing special, just a fresh arch installation with xorg and gnome running.
additionally, there are the same issues as for azleifel: on reboot/shutdown the "stopping this, stopping that, unmounting xy, ..."-messages don't appear. the difference for me to azleifel: the messages never appear.

i'm using a new laptop since some days. on the machine before, i had the same troubles but nothing was displayed and the system just did nothing when i tried to shut down or reboot. gnome and X stopped, the screen was blank and nothing happend. but the logs showed, that the system was looking for /usr/bin/reboot and /usr/bin/poweroff.
btw: i tried both, arch64 and 32bit arch and found out, that it's the same for arch64 too.

i'm not really used with reporting bugs for arch...howto? or did anybody else report it?

Last edited by clownfish (2008-02-08 16:47:42)

Offline

#7 2008-02-08 17:25:41

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: missing /usr/bin/reboot

This looks like the same bug...  http://bugs.archlinux.org/task/8304

Offline

#8 2008-02-08 18:20:19

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: missing /usr/bin/reboot

Allan wrote:

This looks like the same bug...  http://bugs.archlinux.org/task/8304

I saw this bug.  It's the same symptom but I'm not sure that it's addressing the true cause.  As far as I know, the warning message about not being able to find /usr/bin/whatever is of no consequence because gdm just works its way through the list of possible reboot/shutdown commands in its config file until it finds one that works (issuing warnings for the ones that don't work along the way).  What's happening now is that the warning is showing up on the console, rather than just in the log files, during shutdown.  I'm guessing that this is a consequence of gdm-binary segfaulting.  What I don't know is why gdm-binary has started to segfault.  All I have to go on at the moment is the apparent causal link with the updates last Saturday morning.

EDIT: Something in Friday's 200Mb of updates seems to have fixed whatever it was that was causing the problem.

Last edited by azleifel (2008-02-09 07:55:54)

Offline

Board footer

Powered by FluxBB