Red Hat Bugzilla – Bug 353841
Shutdown command after backup won't work
Last modified: 2007-11-30 17:12:20 EST
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
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)
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
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.