~serge-hallyn/ubuntu/natty/lxc/lxc-clone

« back to all changes in this revision

Viewing changes to debian/lxcguest.console.upstart

  • Committer: Serge Hallyn
  • Date: 2011-04-11 19:05:47 UTC
  • Revision ID: serge.hallyn@canonical.com-20110411190547-aw2fq8trsmsqv550
Tags: 0.7.4-0ubuntu7
lxcguest: offer alternate jobs for libvirt-lxc.  Libvirt-lxc doesn't watch
guest's utmp (doesn't support clean shutdown at all) so it can safely
mount its own /var/run and such.  Hopefully this can go away after lxc
supports clean shutdown/reboot without the utmp-watching hack.
(LP: #757752)

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
env container
11
11
pre-start script
12
 
        [ "x$container" != "xlxc" ] && { stop; exit 0; }
 
12
        if [ "x$container" != "xlxc" && "x$container" != "xlibvirt" ]; then
 
13
                stop;
 
14
        fi
13
15
        exit 0;
14
16
end script
15
17