lxc-containers.in revision 66188b02b8009075a2e0e2b89a14688c50565bf4
0af993195cbd57cff700c7c90ee8f95c2a1ef8aaMichael H. Warfield# lxc Start/Stop LXC autoboot containers
0af993195cbd57cff700c7c90ee8f95c2a1ef8aaMichael H. Warfield# chkconfig: 345 99 01
0af993195cbd57cff700c7c90ee8f95c2a1ef8aaMichael H. Warfield# description: Starts/Stops all LXC containers configured for autostart.
0af993195cbd57cff700c7c90ee8f95c2a1ef8aaMichael H. Warfield### BEGIN INIT INFO
0af993195cbd57cff700c7c90ee8f95c2a1ef8aaMichael H. Warfield# Provides: lxc
66188b02b8009075a2e0e2b89a14688c50565bf4Evgeni Golov# Required-Start: $syslog $remote_fs
66188b02b8009075a2e0e2b89a14688c50565bf4Evgeni Golov# Required-Stop: $syslog $remote_fs
66188b02b8009075a2e0e2b89a14688c50565bf4Evgeni Golov# Should-Start:
66188b02b8009075a2e0e2b89a14688c50565bf4Evgeni Golov# Should-Stop:
0af993195cbd57cff700c7c90ee8f95c2a1ef8aaMichael H. Warfield# Default-Start: 2 3 4 5
0af993195cbd57cff700c7c90ee8f95c2a1ef8aaMichael H. Warfield# Default-Stop: 0 1 6
0af993195cbd57cff700c7c90ee8f95c2a1ef8aaMichael H. Warfield# Short-Description: Bring up/down LXC autostart containers
0af993195cbd57cff700c7c90ee8f95c2a1ef8aaMichael H. Warfield# Description: Bring up/down LXC autostart containers
0af993195cbd57cff700c7c90ee8f95c2a1ef8aaMichael H. Warfield### END INIT INFO
fce070c815604e863f4628ecceb172ffdbbb2465Dwight Engen# Source function library.
fce070c815604e863f4628ecceb172ffdbbb2465Dwight Engentest ! -r "$sysconfdir"/rc.d/init.d/functions ||
fce070c815604e863f4628ecceb172ffdbbb2465Dwight Engen# provide action() fallback
fce070c815604e863f4628ecceb172ffdbbb2465Dwight Engen # Real basic fallback for sysvinit "action" verbage.
a8c710632826ed8ebf46ca91b0cb8ae04c86de5dCarlos Alberto Lopez Perez # Setup host /dev for autodev containers.
fce070c815604e863f4628ecceb172ffdbbb2465Dwight Engen action $"Starting LXC autoboot containers: " @LIBEXECDIR@/lxc/lxc-containers start
fce070c815604e863f4628ecceb172ffdbbb2465Dwight Engen action $"Stopping LXC containers: " @LIBEXECDIR@/lxc/lxc-containers stop
0af993195cbd57cff700c7c90ee8f95c2a1ef8aaMichael H. Warfield# See how we were called.
0af993195cbd57cff700c7c90ee8f95c2a1ef8aaMichael H. Warfield echo "Usage: $0 {start|stop|restart|reload|force-reload}"