@ -33,13 +33,25 @@ case "$1" in
;;
stop)
echo "Stopping NodeBB. Goodbye!";
kill $(cat pidfile);
pidExists;
if [ 0 -eq $? ];
then
echo "NodeBB is already stopped.";
else
fi
reload|restart)
echo "Restarting NodeBB.";
kill -1 $(cat pidfile);
echo "NodeBB could not be restarted, as a running instance could not be found.";
status)