3a186698a6
There is a common pattern of if init_system == foo then install init script foo-service-init into /etc/init... Lets encode this pattern by allowing elements to put files into init-scripts/init-system directories and then copying the appropriate files for them. Change-Id: I541db18a0a8c5e0755a0af5732f4e15a5e5cf984 |
||
---|---|---|
.. | ||
environment.d | ||
install.d | ||
pre-install.d | ||
dib-init-system | ||
README.rst |
dib-init-system
Installs a script (dib-init-system) which outputs the type of init
system in use on the target image. Also sets an environment variable
DIB_INIT_SYSTEM
to this value.
Any files placed in a init-scripts/INIT_SYSTEM
directory
inside the element will be copied into the appropriate directory if
INIT_SYSTEM
is in use on the host.
Environment Variables
- DIB_INIT_SYSTEM
-
- Description
-
One of upstart, systemd, or sysv depending on the init system in use for the target image.