Adding all files for initial repo

This commit is contained in:
Ketan Patel committed 2025-08-01 16:06:58 -04:00
1 parent e4a9160eca
commit fc5eca2560
6 files changed
+123

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -e
CLEANUP_FILE="/home/nfs_download/rsession/rtorrent.lock"
# Remove stale lock at startup
if [ -f "$CLEANUP_FILE" ]; then
echo "️Stale lock file found. Removing..."
rm -f "$CLEANUP_FILE"
fi
cleanup() {
echo "Caught shutdown signal. Cleaning up..."
rm -f "$CLEANUP_FILE"
echo "Cleanup complete."
}
trap cleanup INT TERM EXIT
echo "Starting rtorrent..."
exec rtorrent