Take advantage of new function find_statd_sm_dir() when clearing the
local system statd state directory, so it uses the correct directory
when running on a non-RH distro.
Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
# Delete the notification list for statd, we don't want it to
# ping any clients
- rm -f /var/lib/nfs/statd/sm/*
- rm -f /var/lib/nfs/statd/sm.bak/*
+ dir=$(find_statd_sm_dir)
+ rm -f "${dir}/"* "${dir}.bak/"*
# We must also let some time pass between stopping and
# restarting the lock manager. Otherwise there is a window