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