atproto user agency toolkit for individuals and groups
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 20 lines 631 B view raw
1#!/bin/bash 2# Stop both p2pds nodes using pid files, with fallback to pgrep 3for node in node1 node2; do 4 pidfile="/tmp/p2pds-${node}.pid" 5 portfile="/tmp/p2pds-${node}.port" 6 if [ -f "$pidfile" ]; then 7 pid=$(cat "$pidfile") 8 kill "$pid" 2>/dev/null && echo "Stopped $node (pid $pid)" 9 rm -f "$pidfile" "$portfile" 10 fi 11done 12 13# Fallback: kill any remaining p2pds server processes (compiled and tsx) 14for pattern in "node dist/server" "tsx.*src/server" "tsx watch"; do 15 for pid in $(pgrep -f "$pattern" 2>/dev/null); do 16 kill "$pid" 2>/dev/null && echo "Stopped orphaned process $pid ($pattern)" 17 done 18done 19 20sleep 2