Moved killrails to plugins, added newline, added meta information, cut indentation to 2 spaces.

pull/720/head
Matt Broyles 2016-05-17 16:10:54 -05:00
parent 871472d93d
commit 05385d43d7
2 changed files with 15 additions and 11 deletions

View File

@ -1,11 +0,0 @@
# Quick function to kill a daemonized Rails server
function killrails() {
railsPid="$(cat tmp/pids/server.pid)"
if [ ! -z "$railsPid" ]; then
echo "[OK] Rails Server Process Id : ${railsPid}"
kill -9 $railsPid
echo "[OK] Process Killed"
else
echo "[FAIL] Error killing Rails server"
fi
}

View File

@ -0,0 +1,15 @@
cite about-plugin
about-plugin 'Function to kill a daemonized Rails server.'
# Quick function to kill a daemonized Rails server
function killrails() {
railsPid="$(cat tmp/pids/server.pid)"
if [ ! -z "$railsPid" ]; then
echo "[OK] Rails Server Process Id : ${railsPid}"
kill -9 $railsPid
echo "[OK] Process Killed"
else
echo "[FAIL] Error killing Rails server"
return 1
fi
}