commit | 499154c641699362e2fc3079fa2a2165ca4aa45f | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Sun Aug 26 21:00:48 2012 +0400 |
committer | Kir Kolyshkin <kir@openvz.org> | Sun Aug 26 21:00:48 2012 +0400 |
tree | 589e1d7118141734c7b410f9f5b96e9dbb71ae86 | |
parent | 63dd0fd8bec716c52d1a1f2349dd67d83f785ebd [diff] |
init.d/vz-redhat: fix errorneous lockfile removal Commit 3ec48156c added trap statement to lockfile() to make sure there is no lock file left after script finishes. Unfortunately, this works even in the case when we report that OpenVZ is locked. Fix by cleaning the trap in case we're already locked. http://bugzilla.openvz.org/2342 Reported-by: Pavel Odintsov <pavel.odintsov@gmail.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org>