Virtualbmc 2.0 dropped the daemon autostart feature. This means we need to explicitly start it. Running it as a Systemd unit, code adapted from Tenks. In order to allow Systemd to execute the daemon on systems with SELinux enabled, it must be installed to the system rather than a virtualenv. Change-Id: I66e8e5f5a9c16ac90e132074c826d508458ae4d1
13 lines
257 B
Django/Jinja
13 lines
257 B
Django/Jinja
{% if enable_venv | bool %}
|
|
{% set vbmcd = bifrost_venv_dir ~ '/bin/vbmcd' %}
|
|
{% else %}
|
|
{% set vbmcd = '/usr/local/bin/vbmcd' %}
|
|
{% endif %}
|
|
[Unit]
|
|
Description=Virtual BMC daemon
|
|
|
|
[Service]
|
|
Type=simple
|
|
Restart=on-failure
|
|
ExecStart={{ vbmcd }} --foreground
|