[Unit] Description=Wedding Phone - Vintage Rotary Phone Audio System After=network.target sound.target Wants=network.target sound.target [Service] Type=simple User=berwn Group=berwn WorkingDirectory=/home/berwn/wedding-phone Environment="PATH=/home/berwn/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ExecStart=/home/berwn/.local/bin/uv run --no-project python rotary_phone_web.py Restart=always RestartSec=10 # Security hardening # NoNewPrivileges=true # Disabled to allow sudo for shutdown/reboot commands PrivateTmp=true # Allow GPIO access SupplementaryGroups=gpio audio [Install] WantedBy=multi-user.target