#!/bin/zsh # Stop the bellows server. Every paragraph is saved the moment you write it. PIDS=$(lsof -ti tcp:8782 -sTCP:LISTEN 2>/dev/null) if [ -n "$PIDS" ]; then kill $PIDS && echo "bellows stopped"; else echo "bellows was not running"; fi sleep 1 exit 0