-
-
Save davidedelpapa/8e1aa4145b4841853cd67dde31115678 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
stop(){ | |
if [ -f .serverpid ]; then | |
kill $(cat .serverpid) | |
rm .serverpid | |
echo Server stopped | |
else | |
echo Could not find the server PID. Is it running? | |
fi | |
} | |
stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment