Skip to content

Instantly share code, notes, and snippets.

@4sskick
Created June 20, 2020 19:01
Show Gist options
  • Save 4sskick/4ae35869e506d1a625585acfe9998006 to your computer and use it in GitHub Desktop.
Save 4sskick/4ae35869e506d1a625585acfe9998006 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo 'Trying to STOP service MongoDB'
set -x #for echo on
net stop MongoDB
echo 'Done STOP service MongoDB'
sleep 3 #3 secs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment