Fix swap_manager.socket configuration 37/210837/2
authorINSUN PYO <insun.pyo@samsung.com>
Thu, 25 Jul 2019 07:11:01 +0000 (16:11 +0900)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Tue, 3 Sep 2019 18:12:09 +0000 (21:12 +0300)
The systemd socket unit file does not support multiple sections
("[scoket]") in one file. In this case, all duplicate items (like User)
have the last value.

Change-Id: I396767d050dc7e5ce5bb750998e55f5cad7fad82

systemd/swap_manager.socket

index 59fe3467f475ff409228f5e5731ea596673532ea..3b15933cd1a0fc51a0eb79494493ab4b95c12638 100644 (file)
@@ -2,20 +2,12 @@
 Description=swap_manager sockets
 StopWhenUnneeded=yes
 
-# lib.socket
 [Socket]
-SocketUser=owner
-SocketGroup=users
 ListenStream=/run/swap/lib.socket
-SmackLabelIPIn=*
-SmackLabelIPOut=@
-RemoveOnStop=yes
+ListenStream=/run/swap/ui_lib.socket
 
-# ui_lib.socket
-[Socket]
 SocketUser=owner
 SocketGroup=users
-ListenStream=/run/swap/ui_lib.socket
 SmackLabelIPIn=*
 SmackLabelIPOut=@
 RemoveOnStop=yes