aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/rpcbind/rpcbind/rpcbind.socket
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-10-09 13:35:07 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-10 10:39:13 +0100
commit176e91ef28800adb6295b29c455b2efb91a01876 (patch)
tree28b8281220bb6b9e8f1498ff2c4918336e541902 /meta/recipes-extended/rpcbind/rpcbind/rpcbind.socket
parente96723879eb3352a5bdea7b3e1a576edf9550e5a (diff)
downloadopenembedded-core-contrib-176e91ef28800adb6295b29c455b2efb91a01876.tar.gz
rpcbind: make service socket activated
Instead of setting 'Restart=always' in the service file, we should make the service socket activated, just like what Fedora does. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Diffstat (limited to 'meta/recipes-extended/rpcbind/rpcbind/rpcbind.socket')
-rw-r--r--meta/recipes-extended/rpcbind/rpcbind/rpcbind.socket8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-extended/rpcbind/rpcbind/rpcbind.socket b/meta/recipes-extended/rpcbind/rpcbind/rpcbind.socket
new file mode 100644
index 0000000000..d63c1d9720
--- /dev/null
+++ b/meta/recipes-extended/rpcbind/rpcbind/rpcbind.socket
@@ -0,0 +1,8 @@
+[Unit]
+Description=RPCbind Server Activation Socket
+
+[Socket]
+ListenStream=/var/run/rpcbind.sock
+
+[Install]
+WantedBy=sockets.target