systemd: Add file existence dependency on /proc/device-tree/model 65/182665/1 accepted/tizen/unified/20180702.062859 submit/tizen/20180629.045726
authorWook Song <wook16.song@samsung.com>
Wed, 27 Jun 2018 02:18:32 +0000 (11:18 +0900)
committerWook Song <wook16.song@samsung.com>
Wed, 27 Jun 2018 03:07:06 +0000 (12:07 +0900)
Since this deamon requires to open /proc/device-tree/model to get the
board model information, the service sometimes failed to start on the
system which does not use device-tree. For example, the system on the
x86-64 architecture does not use device-tree so that this daemon would
fail to be activated on this system. In order to solve this issue, this
patch adds a ConditionPathExists dependency on /proc/device-tree/model
to the systemd unit configuration file.

Change-Id: Ibf1bdfbe3df76a878ff608464907c84351fe35d1
Signed-off-by: Wook Song <wook16.song@samsung.com>
packaging/peripheral-bus.service

index a06629a6b83f48f9caa76b8c832fc48d65366e02..44405479ac9ac59ab0ce294334ef0448c78425df 100644 (file)
@@ -1,6 +1,7 @@
 [Unit]
 Description=Peripheral Service Daemon
 Requires=dbus.service
+ConditionPathExists=/proc/device-tree/model
 After=systemd-tmpfiles-setup.service
 
 [Service]