On Sun 2010-01-31 (13:38), Tony Risinger wrote:

> if your using the standard init program, and you are only trying to
> control stutdown/reboot, i use something like this in my container
> inittab:
> 
> p6::ctrlaltdel:/sbin/init 6
> p0::powerfail:/sbin/init 0
> 
> ctrlaltdel responds to a SIGINT, and powerfail responds to SIGPWR.
> this lets you send a:
> 
> kill -INT <init pid>
> 
> to reboot, and:
> 
> kill -PWR <init pid>
> 
> to shutdown.  


Ubuntu has upstart instead of the classic init and upstart ignores INT and
PWR signals.

I could do a: ssh container "shutdown -h now"
But this needs a working networking and a sshd inside the container.

Is there a way to tell upstart to execute a shutdown or at least invoke
/etc/init/control-alt-delete.conf ?



-- 
Ullrich Horlacher              Server- und Arbeitsplatzsysteme
Rechenzentrum                  E-Mail: horlac...@rus.uni-stuttgart.de
Universitaet Stuttgart         Tel:    ++49-711-685-65868
Allmandring 30                 Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.rus.uni-stuttgart.de/

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to