11-17-2013 07:34 PM
we have recently purchased hpux blade servers with HPUX 11.31 having sudo .i can do all activiites with sudo .when i issue shutdown /reboot commnd using sudo ,its stopping all user process etc,unmounting filesystem etc like all steps ,but system not rebooting/shutdown .how to fix this ?
11-18-2013 02:27 AM
What's the exact command you're using?
If you use the "shutdown" command without either the "-r" or "-h" option, the system will go to single user mode, and will only be accessible from the console (e.g. through the iLO). This is how the shutdown command is supposed to work.
To reboot HP-UX using sudo, your command should be like:
sudo shutdown -r now
Or if you wish to shutdown the blade so that it will power off, the command should be like:
sudo shutdown -h now
a month ago
still i am facing same issue ..with sudoers i can intiate the shutdown or reboot command and system intiated the shutdown command (that is started killing each process ) and finally my connection also getting disconnected ...but system never going for a reboot/shutdown ..is it a know issue in hpux sudo ?
a month ago
what i beleive is
What happens is that /sbin/reboot (which is run by /sbin/shutdown) sends a SIGTERM signal to all processes before it calls the reboot system call.When sudo receives the SIGTERM, it passes the signal to the command it is running (shutdown or reboot) which kills the reboot process before it has had a chance to actually reboot the machine.
is it a fix avl in hpux ?
a month ago - last edited a month ago
>what I believe is
Have you used tusc to show this?
>is a fix available in HP-UX?
If this is what's happening, you're out of luck. sudo isn't going to special case reboot and reboot isn't going to special case sudo.
But I suppose reboot can block SIGTERM.