[Unit] Description=Sunshine game stream host for Moonlight Documentation=https://docs.lizardbyte.dev/projects/sunshine/ # Singleton: binds the streaming ports. Same guard as every other unit here. ConditionHost=mainframe # Nothing to capture without the compositor, and Sunshine should die with it. Requires=sway-headless.service After=sway-headless.service PartOf=sway-headless.service [Service] Type=simple # Our own unit rather than a drop-in: the AUR source package ships # sunshine.service and the -bin package ships # app-dev.lizardbyte.app.Sunshine.service, so a drop-in silently stops # applying the moment you switch between them. ExecStart=/usr/bin/sunshine Restart=on-failure RestartSec=5s StartLimitBurst=3 [Install] WantedBy=sway-headless.service