Fixed compile warning
Fixed potential double nfsd start when restarting sharing services