0

I try to shutdown my embedded system running with Linux environment using shutdown -h now. But it is rebooting my system again. So can anyone give me suggestion how to shutdown my system or resolve this issue.

Or any possible reason of this issue?

Linux version is 2.37

ravibhuva9955
  • 199
  • 1
  • 11

2 Answers2

1

Answer to your question is

shutdown -P now 

Jaybee is near correct, where p should be upper case.

ganeshragav
  • 8,695
  • 1
  • 16
  • 13
  • It is not working, I try to use each and every option coming with poweroff and shutdown but system is always rebooting. – ravibhuva9955 Jul 24 '14 at 09:27
  • 1
    Then this most probably seems like bios issue of the embedded system you use. One such issue in Intel is reported here https://communities.intel.com/thread/47751?start=15&tstart=0 – ganeshragav Jul 24 '14 at 09:41
  • Also notice -P option with shutdown is usable when option -h is there otherwise it is not allowed. – ravibhuva9955 Jul 24 '14 at 10:09
1

Try using poweroff command. When posting a question please mention the Linux kernel version being used.

iqstatic
  • 2,322
  • 3
  • 21
  • 39
  • Sorry my kernel version is 2.37, And also using poweroff system is not getting powered off, it is rebooting. – ravibhuva9955 Jul 24 '14 at 09:28
  • Try `halt -p` or `halt -f`. `-f` is the force option. It is supposed to shutdown the system instantly. But its behaviour may not be consistent. Desktops might hang on running this command. – iqstatic Jul 24 '14 at 10:41