Merge "Add network and bluetooth permissions to service template" 10.91.0 10.92.0 10.93.0 11.91.0 11.92.0 12.90.0 12.90.1 12.91.0 12.92.0 12.93.0 13.93.0 koi/10.91.0 koi/10.92.0 koi/10.93.0 koi_10.91.0 koi_10.92.0 koi_10.93.0 lamprey/11.91.0 lamprey/11.92.0 lamprey_11.91.0 lamprey_11.92.0 marlin/12.90.0 marlin/12.90.1 marlin/12.91.0 marlin/12.92.0 marlin/12.93.0 marlin_12.90.0 marlin_12.90.1 marlin_12.91.0 marlin_12.92.0 marlin_12.93.0 needlefish/13.93.0 needlefish_13.93.0
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 1 Dec 2020 22:28:57 +0000 (22:28 +0000)
committerGerrit Code Review <gerrit@automotivelinux.org>
Tue, 1 Dec 2020 22:28:57 +0000 (22:28 +0000)
conf/unit/service.inc

index ea08220..dcc576b 100644 (file)
@@ -46,13 +46,21 @@ Requires=afm-user-session@%i.target
 After=user@%i.service
 ENDIF
 
-After=Network.target
-
 IF_PERM(:public:display)
 BindsTo=weston@display.service
 After=weston@display.service
 ENDIF
 
+IF_PERM(:public:bluetooth)
+Wants=bluetooth.target
+After=bluetooth.target
+ENDIF
+
+IF_PERM(:public:network)
+Wants=network.target
+After=network.target
+ENDIF
+
 # Adds check to smack
 ConditionSecurity=smack
 %nl