Peter Tribble wrote:
> On 4/29/07, Rafal Chojnacki <erch at student.agh.edu.pl> wrote:
>> Hi,
>>
>> Can I halt OpenSolaris directly from Java Desktop System just like a 
>> can logout (for example from launch menu) without opening terminal, 
>> logging as root and running shutdown command?
>
> You don't need to be root. The console user can run sys-suspend (in
> /usr/openwin/bin) to shut down the system. Depending on your hardware,
> the power button may trigger this - or, on sparc at least, the power key
> on the keyboard.
>
> A related question I would like to know the answer to. I can use 
> sys-suspend
> to stop the machine, how could one do a regular reboot?
>
/opt/sfw/bin/sudo /sbin/init 6

Reply via email to