lxc-test-autostart revision c2997f9e6bc45936c46482af4a682af33880791c
85N/A# lxc: linux Container library 85N/A# Stéphane Graber <stgraber@ubuntu.com> 85N/A# This is a test script for lxc-autostart 85N/A# This library is free software; you can redistribute it and/or 85N/A# modify it under the terms of the GNU Lesser General Public 85N/A# License as published by the Free Software Foundation; either 85N/A# version 2.1 of the License, or (at your option) any later version. 85N/A# This library is distributed in the hope that it will be useful, 85N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of 85N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 85N/A# Lesser General Public License for more details. 85N/A# You should have received a copy of the GNU Lesser General Public 85N/A# License along with this library; if not, write to the Free Software 85N/A# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 85N/A# Create a container 85N/A# Ensure it's not in lxc-autostart 85N/A (echo "Container shouldn't be auto-started" && exit 1) 181N/A# Mark it as auto-started and re-check 85N/A (echo "Container should be auto-started" && exit 1) 85N/A# Put it in a test group and set a delay # Check that everything looks good echo "Invalid autostart setting" &&
exit 1