diff --git a/templates/lxc-iopsys b/templates/lxc-iopsys index a1a324e8eeb085eecb74d50e96979166f72812c0..fe9c75d3d5e8e5d3b78602b6c132ac550b254252 100755 --- a/templates/lxc-iopsys +++ b/templates/lxc-iopsys @@ -414,7 +414,9 @@ fi uci_path=$(dirname "${path}") cfg=$(uci -c "${uci_path}" -q add lxccontainer container) if [ -n "${cfg}" ]; then - uci -c "${uci_path}" -q set lxccontainer."${cfg}".name="${name}" - uci -c "${uci_path}" -q set lxccontainer."${cfg}".type='lxc' - uci -c "${uci_path}" commit lxccontainer + uci -c "${uci_path}" -q set lxccontainer."${cfg}".name="${name}" + uci -c "${uci_path}" -q set lxccontainer."${cfg}".type='lxc' + uci -c "${uci_path}" -q set lxccontainer."${cfg}".autostart='1' + uci -c "${uci_path}" -q set lxccontainer."${cfg}".timeout='300' + uci -c "${uci_path}" commit lxccontainer fi