Searched refs:init (Results 1 - 23 of 23) sorted by relevance

/lxc/config/init/sysvinit/
H A Dlxc-containers.in26 # Try to source LSB init functions to define LSB log_* functions.
27 test ! -r /lib/lsb/init-functions ||
28 . /lib/lsb/init-functions
H A Dlxc-net.in26 # Try to source LSB init functions to define LSB log_* functions.
27 test ! -r /lib/lsb/init-functions ||
28 . /lib/lsb/init-functions
/lxc/config/init/systemd/
H A Dlxc-apparmor-load12 elif [ -x /lib/init/apparmor-profile-load ]; then
13 /lib/init/apparmor-profile-load usr.bin.lxc-start
14 /lib/init/apparmor-profile-load lxc-containers
/lxc/templates/
H A Dlxc-debian.in61 si::sysinit:/etc/init.d/rcS
62 l0:0:wait:/etc/init.d/rc 0
63 l1:1:wait:/etc/init.d/rc 1
64 l2:2:wait:/etc/init.d/rc 2
65 l3:3:wait:/etc/init.d/rc 3
66 l4:4:wait:/etc/init.d/rc 4
67 l5:5:wait:/etc/init.d/rc 5
68 l6:6:wait:/etc/init.d/rc 6
73 p6::ctrlaltdel:/sbin/init 6
74 p0::powerfail:/sbin/init
[all...]
H A Dlxc-centos.in220 # Deal with some dain bramage in the /etc/init.d/halt script.
228 # ourselves a copy. That way a major update to the init scripts won't
230 if [ -f ${rootfs_path}/etc/init.d/halt ]
233 < ${rootfs_path}/etc/init.d/halt \
234 > ${rootfs_path}/etc/init.d/lxc-halt
236 echo '$command -f' >> ${rootfs_path}/etc/init.d/lxc-halt
237 chmod 755 ${rootfs_path}/etc/init.d/lxc-halt
242 ln -s ../init.d/lxc-halt S00lxc-halt
244 ln -s ../init.d/lxc-halt S00lxc-reboot
276 # create lxc compatibility init scrip
[all...]
H A Dlxc-sparclinux.in130 rm -f $container_rootfs/etc/sysconfig/network-scripts/init.ipv6-global
141 rm -f $container_rootfs/etc/init/readahead-collector.conf
142 rm -f $container_rootfs/etc/init/readahead-disable-services.conf
157 sed -i 's|\[ -x /sbin/hwclock|\[ 0 -eq 1|' $container_rootfs/etc/rc.d/init.d/halt
168 rm -f $container_rootfs/etc/init/plymouth-shutdown.conf
169 rm -f $container_rootfs/etc/init/quit-plymouth.conf
170 rm -f $container_rootfs/etc/init/splash-manager.conf
173 sed -i 's|&& $1 !~ /^\\/dev\\/ram/|\&\& $2 !~ /^\\/dev\\/lxc/ \&\& $1 !~ /^\\/dev\\/ram/|' $container_rootfs/etc/init.d/halt
176 sed -i 's|\[ -f /proc/swaps \]|# LXC [ -f /proc/swaps ]|' $container_rootfs/etc/init.d/halt
246 if [ -f $container_rootfs/etc/init/tt
[all...]
H A Dlxc-sshd.in43 $rootfs/etc/init.d \
128 init_path=$(realpath --relative-to=/ $(readlink -f /sbin/init))
146 lxc.mount.entry = /etc/init.d etc/init.d none ro,bind 0 0
219 if [ $0 = "/sbin/init" ]; then
222 check_for_cmd @SBINDIR@/init.lxc
241 exec @SBINDIR@/init.lxc -- $sshd_path
H A Dlxc-oracle.in111 # The OL 5 init honors /etc/selinux/config, but note that
116 # /usr/sbin/selinuxenabled with a symlink to /bin/false so that init
201 sed -i 's|-f /proc/sys/net/ipv4/ip_forward|-w /proc/sys/net/ipv4/ip_forward|' $container_rootfs/etc/rc.d/init.d/network
202 sed -i 's|-f /proc/sys/net/ipv4/ip_always_defrag|-w /proc/sys/net/ipv4/ip_always_defrag|' $container_rootfs/etc/rc.d/init.d/network
206 rm -f $container_rootfs/etc/sysconfig/network-scripts/init.ipv6-global
217 rm -f $container_rootfs/etc/init/readahead-collector.conf
218 rm -f $container_rootfs/etc/init/readahead-disable-services.conf
230 sed -i 's|action $"Setting network parameters|# LXC action $"Setting network parameters|' $container_rootfs/etc/init.d/network 2>/dev/null
231 sed -i 's|action $"Setting network parameters|# LXC action $"Setting network parameters|' $container_rootfs/etc/init.d/NetworkManager 2>/dev/null
262 sed -i 's|runcmd $"Syncing hardware clock|# LXC no hwclock runcmd $"Syncing hardware clock|' $container_rootfs/etc/rc.d/init
[all...]
H A Dlxc-alpine.in305 cat <<'EOF' > etc/init.d/hosts
314 $start_tag by /etc/init.d/hosts
335 chmod +x etc/init.d/hosts
358 ln -s /etc/init.d/$svc_name etc/runlevels/boot/$svc_name
365 if [ -e etc/init.d/$svc_name ]; then
366 ln -s /etc/init.d/$svc_name etc/runlevels/default/$svc_name
H A Dlxc-fedora.in192 # Deal with some dain bramage in the /etc/init.d/halt script.
200 # ourselves a copy. That way a major update to the init scripts won't
205 if [ -f ${rootfs_path}/etc/init.d/halt ]
208 < ${rootfs_path}/etc/init.d/halt \
209 > ${rootfs_path}/etc/init.d/lxc-halt
211 echo '$command -f' >> ${rootfs_path}/etc/init.d/lxc-halt
212 chmod 755 ${rootfs_path}/etc/init.d/lxc-halt
217 ln -s ../init.d/lxc-halt S00lxc-halt
219 ln -s ../init.d/lxc-halt S00lxc-reboot
254 # here for legacy reasons and older releases with upstart and sysv init
[all...]
H A Dlxc-ubuntu.in124 if [ ! -f $rootfs/etc/init/container-detect.conf ]; then
130 rm -f $rootfs/etc/init/tty{5,6}.conf
156 mv $rootfs/etc/init/ssh.conf $rootfs/etc/init/ssh.conf.disabled
158 mv $rootfs/etc/init/ssh.conf.disabled $rootfs/etc/init/ssh.conf
H A Dlxc-busybox.in77 $rootfs/etc/init.d \
129 cat <<EOF >> $rootfs/etc/init.d/rcS
137 chmod 744 $rootfs/etc/init.d/rcS || return 1
143 ::sysinit:/etc/init.d/rcS
323 # relink /sbin/init
324 ln $rootfs/bin/busybox $rootfs/sbin/init
H A Dlxc-download.in589 if [ -f ${LXC_ROOTFS}/etc/init/tty.conf ]; then
590 sed -i 's|mingetty|mingetty --nohangup|' ${LXC_ROOTFS}/etc/init/tty.conf
H A Dlxc-plamo.in226 chmod 644 $rootfs/etc/rc.d/init.d/saslauthd
227 chmod 644 $rootfs/etc/rc.d/init.d/open-iscsi
228 rm -f $rootfs/etc/rc.d/init.d/postfix
H A Dlxc-archlinux.in115 pacman-key --init
H A Dlxc-opensuse.in168 Support: hwinfo insserv-compat module-init-tools openSUSE-release openssh
/lxc/src/lxc/cgroups/
H A Dcgroup.h44 void *(*init)(const char *name); member in struct:cgroup_ops
H A Dcgroup.c69 handler->cgroup_data = ops->init(handler->name);
91 * Enter the container init into its new cgroups for all
211 #define INIT_SCOPE "/init.scope"
H A Dcgfsng.c68 root), or init's cgroup (if root).
603 * Since the h->base_path is populated by init or ourselves, we know
1061 * Root spawned containers escape the current cgroup, so use init's
1732 /* Only root needs to escape to the cgroup of its init */
1991 .init = cgfsng_init,
H A Dcgmanager.c766 /* get the container init pid and ask for its abs cgroup */
1655 .init = cgm_init,
H A Dcgfs.c1612 * (mountall reads /lib/init/fstab and tries to (re-)mount all of
2689 .init = cgfs_init,
/lxc/hooks/
H A Dubuntu-cloud-prep30 [ -i | --instance-id]: instance-id for cloud-init, defaults to random [ds]
33 [ -u | --userdata ]: user-data file for cloud-init [ds]
34 [ -V | --vendordata ]: vendor-data file for cloud-init [ds]
41 local long_opts="auth-key:,cloud,help,hostid:,name:,nolocales:,create-etc-init,userdata:,vendordata:,verbose"
64 --create-etc-init) create_etc_init=1;;
100 "$root_d/etc/init/.overlayfs-upstart-helper" ||
101 { error "failed to create /etc/init in overlay"; return 1; }
152 echo "output: {all: '| tee -a /var/log/cloud-init-output.log'}"
182 # if mountpoint is overlayfs then add '--create-etc-init'
184 create_etc_init="--create-etc-init"
[all...]
/lxc/src/lxc/tools/
H A Dlxc_ls.c70 pid_t init; member in struct:ls
472 l->init = c->init_pid(c);
747 *m = (struct ls){.name = NULL, .init = -1};
843 if (m->init > 0)
844 printf("%-*d ", lht->init_length, m->init);
1060 nbytes = sizeof(n->init);
1061 if (lxc_write_nointr(wpipefd, &n->init, (size_t)nbytes) != nbytes)
1143 nbytes = sizeof(n->init);
1144 if (lxc_read_nointr(rpipefd, &n->init, (size_t)nbytes) != nbytes)
1234 if (m->init !
[all...]

Completed in 134 milliseconds