[Unit] Description=BubbleCam GPIO record switch (start/stop camera capture) After=local-fs.target [Service] Type=simple ExecStart=/opt/bubblecam/bin/record_switch.py # Restart=always (not on-failure): if this daemon is down, the physical # switch is dead -- there is no acceptable "stay stopped" failure mode. Restart=always RestartSec=5 User=root [Install] WantedBy=multi-user.target