while sleep 10; do date; if service-control --status vmware-vpxd | fgrep "Running:" ; then echo Good; else date >> /tmp/vpxdcrash.log; service-control --start vmware-vpxd; fi; done Share this:TwitterFacebookLinkedInRedditWhatsAppEmail