I am wondering if anyone knows a place where a person can download a command for the HP-UX 9.04 OS. The machine is just sitting around, and is not being used due to the fact that it is not Y2K compliant (or so the rumor goes). The command that does not exist is "reboot", which normally resides under /etc. Thoughts?
I don't have access to a 9.x box to prove this, but I strongly doubt that reboot was put in /etc by HP. I think it was /sbin/reboot. And running the reboot command directly on a HP-UX box will not run shutdown scripts. You should be using the shutdown command. But it will need /sbin/reboot. And
"strings /sbin/shutdown | grep reboot"
should tell you where HP expects reboot to be.
In response to your response...
I might be dealing with a system that is not 100% setup correctly. One reason I say this is because there is no /sbin directory off of the root directory on this system. And, the shutdown command's man page brings up a description of how to shut down a socket.
I can send you some details outside of here if you want more info.
Thanks,
On HPUX 11 /etc/reboot is a link to /usr/sbin/reboot (which links to /sbin/reboot). Check that the links just didn't get removed.
Also see if shutdown -r does the same thing.
Ok. There still is no /sbin or /usr/sbin on this system. However, I tried the shutdown -r command and it started the shutdown process like I've seen on AIX. I'm not quite sure why the man page for shutdown talks about a shutdown() function that deals with sockets. Anyway...I'm all set. Thanks for your help.
You don't have /sbin and /usr/sbin ??
Under most circumstances, I would worry... maybe you know something I don't. Are all filesystems mounted? I don't know about HP-UX 9.x, but in 10.x and 11.x, the system startup / shutdown scripts are installed in /sbin...
If your system has been modfied that much, perhaps, you'll have to consult the folks that built / service it.
thekid, what do you get from "which shutdown"?
And anyway, I can shed some light here. First shutdown(2) is a system call that will exist on any unix system with BSD sockets. So there is a manpage for shutdown(2) and shutdown(1m). When you just do "man shutdown", the man command just shows the first page it finds. With HP's man command you can do "man 1m shutdown" and "man 2 shutdown" to pick one or the other.
At 9.x, HP-UX did not have the kind of shutdown and startup scripts it has now. It had a single monolithic rc script which did indeed reside in /etc.