aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/rpcbind/rpcbind/rpcbind.service
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-10-09 01:28:55 -0400
committerChen Qi <Qi.Chen@windriver.com>2014-10-09 13:33:22 +0800
commit501986bdf16acfbfa6917d42bfdfe5bda1698f24 (patch)
treef086fccc767198a25075ad2a083bd81a1eccdbd3 /meta/recipes-extended/rpcbind/rpcbind/rpcbind.service
parent16cedc3bce6fc37543e9ef053cd7c589e523ca1c (diff)
downloadopenembedded-core-contrib-ChenQi/rpcbind-systemd.tar.gz
rpcbind: make service socket activatedChenQi/rpcbind-systemd
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.service')
-rw-r--r--meta/recipes-extended/rpcbind/rpcbind/rpcbind.service9
1 files changed, 3 insertions, 6 deletions
diff --git a/meta/recipes-extended/rpcbind/rpcbind/rpcbind.service b/meta/recipes-extended/rpcbind/rpcbind/rpcbind.service
index 33ee268441..b3ae2541a0 100644
--- a/meta/recipes-extended/rpcbind/rpcbind/rpcbind.service
+++ b/meta/recipes-extended/rpcbind/rpcbind/rpcbind.service
@@ -1,15 +1,12 @@
[Unit]
-Description=RPC Bind
-After=network.target
-Wants=rpcbind.target
-Before=rpcbind.target
+Description=RPC Bind Service
+Requires=rpcbind.socket
[Service]
Type=forking
EnvironmentFile=-@SYSCONFDIR@/rpcbind.conf
ExecStart=@SBINDIR@/rpcbind -w $RPCBIND_OPTS
-Restart=always
SuccessExitStatus=2
[Install]
-WantedBy=multi-user.target
+Also=rpcbind.socket