Files
bifrost/playbooks/roles/bifrost-create-vm-nodes/templates/vbmcd.service.j2
Mark Goddard 6513e5a6dc Run vbmcd as a Systemd service
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
2020-03-09 13:42:44 +00:00

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