Sunshine Systemd Service Not Created

Hello everyone,

I’m trying to run Sunshine as a systemd service, so I installed sunshine like as the wiki instructed. However, despite setting services.sunshine.autoStart = true; and services.sunshine.capSysAdmin = true;, since I’m running this on Hyprland, it doesn’t not launch the Sunshine as a systemd service. I still have to go into the command line manually and start it, which is less than ideal for remote use. Did I misunderstand the instructions in the wiki or what am I missing?

Any help is appreciated. Thanks in advance.

It’s a user service, and should start autmatically even without those options. It uses graphical-session.target to identify when it should start though, and because wayland WMs do not yet have a good, standardized session init, this target is probably never started.

The easy fix is just to add systemctl --user start graphical-session.target to your WM’s config. The “correct” fix is to use uwsm.

1 Like