#!/bin/bash set -e SERVICE_NAME="walldash" USER_NAME=$(whoami) # Use the project directory relative to this script, not wherever the script is called from SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_DIR="$(dirname "$SCRIPT_DIR")" BUN_PATH=$(which bun) if [ -z "$BUN_PATH" ]; then echo "Error: Bun not found. Please install Bun first." exit 1 fi # Create systemd service file cat <