This file is indexed.

/etc/init/lxc-instance.conf is in lxc1 2.0.7-0ubuntu1~16.04.2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
description "lxc instance"
author "Christian Kampka <chris@emerge-life.de>"

stop on stopping lxc

# wait for 120 seconds for container to shutdown before killing it
kill timeout 120

# send SIGPWR to container to trigger a shutdown (see lxc-shutdown(1))
kill signal SIGPWR


instance $NAME
usage "NAME=name of LXC instance"

pre-start script
	lxc-wait -s RUNNING -n $NAME -t 0 && { stop; exit 0; } || true
end script

exec lxc-start -F -n $NAME