11a4b7ee2SBrad BishopFrom 398fed3bb0350cb1229e54e7020ae0e044c206d1 Mon Sep 17 00:00:00 2001
21a4b7ee2SBrad BishopFrom: =?UTF-8?q?Ulrich=20=C3=96lmann?= <u.oelmann@pengutronix.de>
31a4b7ee2SBrad BishopDate: Wed, 17 Feb 2016 08:33:45 +0100
41a4b7ee2SBrad BishopSubject: bugfix: adjust statd service name
51a4b7ee2SBrad BishopMIME-Version: 1.0
61a4b7ee2SBrad BishopContent-Type: text/plain; charset=UTF-8
71a4b7ee2SBrad BishopContent-Transfer-Encoding: 8bit
81a4b7ee2SBrad Bishop
91a4b7ee2SBrad BishopUpstream uses 'rpc-statd.service' and Yocto introduced 'nfs-statd.service'
101a4b7ee2SBrad Bishopinstead but forgot to update the mount.nfs helper 'start-statd' accordingly.
111a4b7ee2SBrad Bishop
121a4b7ee2SBrad BishopUpstream-Status: Inappropriate [other]
131a4b7ee2SBrad Bishop
141a4b7ee2SBrad BishopSigned-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
151a4b7ee2SBrad Bishop
16*79641f25SBrad BishopRebase it.
17*79641f25SBrad Bishop
18*79641f25SBrad BishopSigned-off-by: Robert Yang <liezhi.yang@windriver.com>
19*79641f25SBrad Bishop---
20*79641f25SBrad Bishop utils/statd/start-statd | 4 ++--
21*79641f25SBrad Bishop 1 file changed, 2 insertions(+), 2 deletions(-)
22*79641f25SBrad Bishop
23*79641f25SBrad Bishopdiff --git a/utils/statd/start-statd b/utils/statd/start-statd
24*79641f25SBrad Bishopindex af5c950..df9b9be 100755
25*79641f25SBrad Bishop--- a/utils/statd/start-statd
26*79641f25SBrad Bishop+++ b/utils/statd/start-statd
27*79641f25SBrad Bishop@@ -28,10 +28,10 @@ fi
281a4b7ee2SBrad Bishop # First try systemd if it's installed.
291a4b7ee2SBrad Bishop if [ -d /run/systemd/system ]; then
301a4b7ee2SBrad Bishop     # Quit only if the call worked.
31*79641f25SBrad Bishop-    if systemctl start rpc-statd.service; then
32*79641f25SBrad Bishop+    if systemctl start nfs-statd.service; then
33*79641f25SBrad Bishop         # Ensure systemd knows not to stop rpc.statd or its dependencies
34*79641f25SBrad Bishop         # on 'systemctl isolate ..'
35*79641f25SBrad Bishop-        systemctl add-wants --runtime remote-fs.target rpc-statd.service
36*79641f25SBrad Bishop+        systemctl add-wants --runtime remote-fs.target nfs-statd.service
37*79641f25SBrad Bishop         exit 0
381a4b7ee2SBrad Bishop     fi
39*79641f25SBrad Bishop fi
40