Can anyone link up the source of the halt tool? It is a binary usually located in /sbin which shuts down the system. I did some search and I couldn't find it anywhere.
+1
A:
Here's a version of halt from busybox. The linux/bsd/whatever one is probably similar in many ways, although a little more elaborate :)
This URL appears to have a copy of the sysvinit source:
ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.86.tar.gz
The halt source should be in that archive.
Gian
2010-07-25 18:05:38
A:
Maybe try /sbin/, some tools like shutdown are located there. If you are looking to restart your computer give:
shutdown -r now
Mike
2010-07-25 18:05:56
+4
A:
In Ubuntu at least, /sbin/halt
is a symlink to /sbin/reboot
, which is a part of upstart. Get it here.
Pedro Silva
2010-07-25 18:07:55
A:
The code for NetBSD is here : http://cvsweb.netbsd.org/bsdweb.cgi/src/sbin/reboot/reboot.c?rev=1.35.4.1&content-type=text/x-cvsweb-markup
nos
2010-07-25 18:14:31