]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
don't remove init file in the stop function
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 31 Mar 2009 11:55:44 +0000 (13:55 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 31 Mar 2009 11:55:44 +0000 (13:55 +0200)
At present the 'init' file is deleted from the 'stop' function and
I don't remember why it is done in this place :)

The 'init' file is removed from the 'start' when the first process
has been deleted.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/stop.c

index eb1044ea16f3e4d57dda8e7aa6a5e45707145845..d66b68fbdbd5d91ec88d5aaaef711b4b68425556 100644 (file)
@@ -70,11 +70,6 @@ int lxc_stop(const char *name)
                goto out_close;
        }
 
-       if (unlink(init)) {
-               lxc_log_syserror("failed to unlink %s", init);
-               goto out_close;
-       }
-
        ret = 0;
 
 out_close: