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 a9b767c..5de4ddc 100644 (file)
@@ -1,7 +1,6 @@
 [Unit]
 Description=TEF Simulator Daemon
 DefaultDependencies=no
-BindsTo=tef-simulator.socket
 
 [Service]
 User=security_fw
index f4295d2..7995aaa 100644 (file)
@@ -4,8 +4,5 @@ SocketMode=0777
 SmackLabelIPIn=*
 SmackLabelIPOut=@
 
-[Unit]
-BindsTo=tef-simulator.service
-
 [Install]
 WantedBy=sockets.target