Fix socket activation 42/171842/3
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 7 Mar 2018 14:45:50 +0000 (15:45 +0100)
committerLukasz Kostyra <l.kostyra@samsung.com>
Mon, 12 Mar 2018 08:42:48 +0000 (08:42 +0000)
Both the service and the socket were bound to each other (BindsTo) making it
impossible to stop only one of them.

This change removes the BindsTo entries to allow socket to run when the service
is down.

Change-Id: I9c22acca4c8730729f332e4f3b1f8fb6d7a0cfc7

systemd/tef-simulator.service.in
systemd/tef-simulator.socket

index a9b767c7f5350427d8e07db975a2a67d24962467..5de4ddcc68f8e4daea5259f11b0e326ff2e3ae3b 100644 (file)
@@ -1,7 +1,6 @@
 [Unit]
 Description=TEF Simulator Daemon
 DefaultDependencies=no
-BindsTo=tef-simulator.socket
 
 [Service]
 User=security_fw
index f4295d2ca6e88530e832ed6bee0c237ea4913a89..7995aaaa464ec13c0a77834d0538b5f5d1629fdd 100644 (file)
@@ -4,8 +4,5 @@ SocketMode=0777
 SmackLabelIPIn=*
 SmackLabelIPOut=@
 
-[Unit]
-BindsTo=tef-simulator.service
-
 [Install]
 WantedBy=sockets.target