diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-10-09 13:35:07 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-10-10 10:39:13 +0100 |
commit | 176e91ef28800adb6295b29c455b2efb91a01876 (patch) | |
tree | 28b8281220bb6b9e8f1498ff2c4918336e541902 /meta/recipes-extended/rpcbind/rpcbind/rpcbind.service | |
parent | e96723879eb3352a5bdea7b3e1a576edf9550e5a (diff) | |
download | openembedded-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.service')
-rw-r--r-- | meta/recipes-extended/rpcbind/rpcbind/rpcbind.service | 9 |
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 |