View previous topic :: View next topic |
Author |
Message |
intmain Apprentice
Joined: 14 Dec 2005 Posts: 179 Location: Austria
|
Posted: Tue Aug 07, 2007 5:12 pm Post subject: Prevent shutdown from calling poweroff |
|
|
Hi!
I have the following problem:
At work I have an Uno-PC (a small PC for industry), which should boot automatically when it is connected to a power source.
When I call shutdown/halt, poweroff is called and after disconnecting and connecting power again, it does not boot automatically.
Is there a possibility to tell shutdown/halt/... not to call poweroff? On my Debian system at work you can define if shutdown should call poweroff in /etc/default/halt, is there something similar in Gentoo?
Thanks in advance! |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Tue Aug 07, 2007 6:46 pm Post subject: |
|
|
shutdown --help wrote: |
-H: halt action is to just halt.
|
_________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
|
intmain Apprentice
Joined: 14 Dec 2005 Posts: 179 Location: Austria
|
Posted: Thu Aug 09, 2007 5:43 pm Post subject: |
|
|
Thanks for your reply!
shutdown -H worked, and I also found another possibility to prevent a poweroff.
I commented out the this line in /etc/init.d/shutdown.sh:
Code: | # [ "${INIT_HALT}" != "HALT" ] && opts="${opts}p" |
|
|
Back to top |
|
|
|