lxc-autostart - Online Linux Manual PageSection : 1
Updated : 2021-01-26
Source :
Note :

NAMElxc-autostart − start/stop/kill auto-started containers

SYNOPSIS.fi lxc-autostart [-k] [-L] [-r] [-s] [-a] [-A] [-g groups] [-t timeout]

DESCRIPTIONlxc-autostart processes containers with lxc.start.auto set. It lets the user start, shutdown, kill, restart containers in the right order, waiting the right time. Supports filtering by lxc.group or just run against all defined containers. It can also be used by external tools in list mode where no action will be performed and the list of affected containers (and if relevant, delays) will be shown. The [-r], [-s] and [-k] options specify the action to perform. If none is specified, then the containers will be started. [-a] and [-g] are used to specify which containers will be affected. By default only containers without a lxc.group set will be affected. [-t TIMEOUT] specifies the maximum amount of time to wait for the container to complete the shutdown or reboot.

OPTIONS\FC\fB\-r,\-\-reboot \fR\*(T>  Request a reboot of the container. \FC\fB\-s,\-\-shutdown \fR\*(T>  Request a clean shutdown. If a [-t timeout] greater than 0 is given and the container has not shut down within this period, it will be killed as with the [-k kill] option. \FC\fB\-k,\-\-kill \fR\*(T>  Rather than requesting a clean shutdown of the container, explicitly kill all tasks in the container. \FC\fB\-L,\-\-list \fR\*(T>  Rather than performing the action, just print the container name and wait delays until starting the next container. \FC\fB\-t,\-\-timeout \fR\*(T>\fITIMEOUT\fR  Wait TIMEOUT seconds before hard-stopping the container. \FC\fB\-g,\-\-group \fR\*(T>\fIGROUP\fR  Comma separated list of groups to select (defaults to those without a lxc.group - the NULL group). This option may be specified multiple times and the arguments concatenated. The NULL or empty group may be specified as a leading comma, trailing comma, embedded double comma, or empty argument where the NULL group should be processed. Groups are processed in the order specified on the command line. Multiple invocations of the -g option may be freely intermixed with the comma separated lists and will be combined in specified order. \FC\fB\-a,\-\-all\fR\*(T>  Ignore lxc.group and select all auto-started containers. \FC\fB\-A,\-\-ignore\-auto\fR\*(T>  Ignore the lxc.start.auto flag. Combined with -a, will select all containers on the system.

AUTOSTART AND SYSTEM BOOTThe lxc-autostart command is used as part of the LXC system service, when enabled to run on host system at bootup and at shutdown. It's used to select which containers to start in what order and how much to delay between each startup when the host system boots. Each container can be part of any number of groups or no group at all. Two groups are special. One is the NULL group, i.e. the container does not belong to any group. The other group is the "onboot" group. When the system boots with the LXC service enabled, it will first attempt to boot any containers with lxc.start.auto == 1 that is a member of the "onboot" group. The startup will be in order of lxc.start.order. If an lxc.start.delay has been specified, that delay will be honored before attempting to start the next container to give the current container time to begin initialization and reduce overloading the host system. After starting the members of the "onboot" group, the LXC system will proceed to boot containers with lxc.start.auto == 1 which are not members of any group (the NULL group) and proceed as with the onboot group.

STARTUP GROUP EXAMPLES\FC\fB\-g "onboot,"\fR\*(T>  Start the "onboot" group first then the NULL group. This is the equivalent of: \FC\fB\-g onboot \-g ""\fR\*(T>. \FC\fB\-g "dns,web,,onboot"\fR\*(T>  Starts the "dns" group first, the "web" group second, then the NULL group followed by the "onboot" group. This is the equivalent of: \FC\fB\-g dns,web \-g ,onboot\fR\*(T> or \*(T<\fB\-g dns \-g web \-g "" \-g onboot\fR\*(T>.

SEE ALSOlxc(7), lxc-create(1), lxc-copy(1), lxc-destroy(1), lxc-start(1), lxc-stop(1), lxc-execute(1), lxc-console(1), lxc-monitor(1), lxc-wait(1), lxc-cgroup(1), lxc-ls(1), lxc-info(1), lxc-freeze(1), lxc-unfreeze(1), lxc-attach(1), lxc.conf(5)

AUTHORStéphane Graber <\FCstgraber@ubuntu.com\*(T>>
0
Johanes Gumabo
Data Size   :   13,582 byte
man-lxc-autostart.1Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 192,516
Visitor ID   :     :  
Visitor IP   :   18.191.171.121   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_escape_sequence|91|lxc-autostart.1|2|\FC |.ds T< \\FC )         (rof_fi|19|lxc-autostart.1|13|1|.fi )         (rof_nr_xx|137|lxc-autostart.1|17|\n(.iu+\nxu |'in \n(.iu+\nxu )         (rof_unit_scale_ch|22|lxc-autostart.1|17|u+\nxu|'in \n(.iu+\nxu )         (rof_in|18|lxc-autostart.1|17|\n(.iu+\nxu|'in \n(.iu+\nxu )         (rof_nr_xx|137|lxc-autostart.1|19|\n(.iu-\nxu |'in \n(.iu-\nxu )         (rof_unit_scale_ch|22|lxc-autostart.1|19|u-\nxu|'in \n(.iu-\nxu )         (rof_in|18|lxc-autostart.1|19|\n(.iu-\nxu|'in \n(.iu-\nxu )         (rof_escape_sequence|91|lxc-autostart.1|43|\FC\fB\-r,\-\-reboot \fR\*(T> |\*(T<\fB\-r,\-\-reboot \fR\*(T> )         (rof_escape_sequence|91|lxc-autostart.1|46|\FC\fB\-s,\-\-shutdown \fR\*(T> |\*(T<\fB\-s,\-\-shutdown \fR\*(T> )         (rof_escape_sequence|91|lxc-autostart.1|53|\FC\fB\-k,\-\-kill \fR\*(T> |\*(T<\fB\-k,\-\-kill \fR\*(T> )         (rof_escape_sequence|91|lxc-autostart.1|57|\FC\fB\-L,\-\-list \fR\*(T> |\*(T<\fB\-L,\-\-list \fR\*(T> )         (rof_escape_sequence|91|lxc-autostart.1|61|\FC\fB\-t,\-\-timeout \fR\*(T>\fITIMEOUT\fR |\*(T<\fB\-t,\-\-timeout \fR\*(T>\fITIMEOUT\fR )         (rof_escape_sequence|91|lxc-autostart.1|64|\FC\fB\-g,\-\-group \fR\*(T>\fIGROUP\fR |\*(T<\fB\-g,\-\-group \fR\*(T>\fIGROUP\fR )         (rof_escape_sequence|91|lxc-autostart.1|77|\FC\fB\-a,\-\-all\fR\*(T> |\*(T<\fB\-a,\-\-all\fR\*(T> )         (rof_escape_sequence|91|lxc-autostart.1|80|\FC\fB\-A,\-\-ignore\-auto\fR\*(T> |\*(T<\fB\-A,\-\-ignore\-auto\fR\*(T> )         (rof_escape_sequence|91|lxc-autostart.1|105|\FC\fB\-g "onboot,"\fR\*(T> |\*(T<\fB\-g "onboot,"\fR\*(T> )         (rof_escape_sequence|91|lxc-autostart.1|108|\FC\fB\-g onboot \-g ""\fR\*(T>. |This is the equivalent of: \*(T<\fB\-g onboot \-g ""\fR\*(T>. )         (rof_escape_sequence|91|lxc-autostart.1|110|\FC\fB\-g "dns,web,,onboot"\fR\*(T> |\*(T<\fB\-g "dns,web,,onboot"\fR\*(T> )         (rof_escape_sequence|91|lxc-autostart.1|114|\FC\fB\-g dns,web \-g ,onboot\fR\*(T> or \*(T<\fB\-g dns \-g web \-g "" \-g onboot\fR\*(T>. |This is the equivalent of: \*(T<\fB\-g dns,web \-g ,onboot\fR\*(T> or \*(T<\fB\-g dns \-g web \-g "" \-g onboot\fR\*(T>. )         (rof_escape_sequence|91|lxc-autostart.1|134|\FCstgraber@ubuntu.com\*(T>> |St\('ephane Graber <\*(T> )