tools: acrnd: bugfix: service lack of prerequisition

As a system service, acrnd will launch UOS, that must be done
after all required services and conditions are ready, such as
acrnprobe, weston, etc.

Tracked-On: #1278
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
This commit is contained in:
yuhong.tao@intel.com 2018-09-18 18:58:21 +08:00 committed by lijinxia
parent 5affe53a9f
commit 270a833283
1 changed files with 5 additions and 0 deletions

View File

@ -1,9 +1,14 @@
[Unit] [Unit]
Description=ACRN manager deamon Description=ACRN manager deamon
After=weston.service
After=systemd-resolved.service
ConditionPathExists=/sys/kernel/gvt
ConditionPathExists=/dev/acrn_vhm
[Service] [Service]
Type=simple Type=simple
ExecStart=/usr/bin/acrnd ExecStart=/usr/bin/acrnd
ExecStop=/usr/bin/killall -s TERM acrnd
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target