Bug 353841 - Shutdown command after backup won't work
Shutdown command after backup won't work
Product: Fedora
Classification: Fedora
Component: fwbackups (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Stewart Adam
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-10-26 06:12 EDT by David Quinn
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-26 19:05:24 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Quinn 2007-10-26 06:12:16 EDT
Description of problem:
I'm trying to get fwbackups to execute the command "shutdown -h now"
after the backup but it doesn't work and my logs show the following error:

Oct 18 19:00:29 :: WARNING : Command returned with a non-zero exit status:
Oct 18 19:00:29 :: ERROR : Return value: 127

The backup is successful but is this a bug or configuration problem?

Version-Release number of selected component (if applicable): 1.43.1
Comment 1 Stewart Adam 2007-10-26 08:26:02 EDT
If I remember correctly, an exit status of 127 is because you're not root when
executing the "shutdown" command. Try using sudo to shutdown the machine (you'll
have to configure /etc/sudoers so that "shutdown" can be run by all users
without a password)
Comment 2 David Quinn 2007-10-26 08:59:50 EDT
Thanks Stuart. The command is executed as root but I think you're right that the
problem may be system related rather than with fw. Thanks for the quick repsonse
and a great programme
Comment 3 Stewart Adam 2007-10-26 19:05:24 EDT
No problem! I'm glad to hear you like it. I'll close the bug as NOTABUG, but if
you find that the problem is occurring from fwbackups feel free to reopen it.

Note You need to log in before you can comment on or make changes to this bug.