drdoom
drdoom
UBUniversal Blue
Created by drdoom on 12/8/2024 in #🛟bazzite-help
Sunshine Autostart not persisting between reboots
@HikariKnight It's wasn't dying, there we no service logs. I think it was not even getting started.
12 replies
UBUniversal Blue
Created by drdoom on 12/8/2024 in #🛟bazzite-help
Sunshine Autostart not persisting between reboots
Could gnome not be triggering the autostart target properly?
12 replies
UBUniversal Blue
Created by drdoom on 12/8/2024 in #🛟bazzite-help
Sunshine Autostart not persisting between reboots
I made a custom user service and changed WantedBy to graphical-session.target Seems to start fine now. Read-only service that's not starting after reboot:
[Unit]
Description=Self-hosted game stream host for Moonlight
StartLimitIntervalSec=500
StartLimitBurst=5

[Service]
ExecStart=/usr/bin/sunshine
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=xdg-desktop-autostart.target
[Unit]
Description=Self-hosted game stream host for Moonlight
StartLimitIntervalSec=500
StartLimitBurst=5

[Service]
ExecStart=/usr/bin/sunshine
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=xdg-desktop-autostart.target
New user service that restarts properly:
[Unit]
Description=Self-hosted game stream host for Moonlight
StartLimitIntervalSec=500
StartLimitBurst=5

[Service]
ExecStart=/usr/bin/sunshine
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=graphical-session.target
[Unit]
Description=Self-hosted game stream host for Moonlight
StartLimitIntervalSec=500
StartLimitBurst=5

[Service]
ExecStart=/usr/bin/sunshine
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=graphical-session.target
12 replies
UBUniversal Blue
Created by drdoom on 12/8/2024 in #🛟bazzite-help
Sunshine Autostart not persisting between reboots
Well, the service is missing when I systemctl --user list-units. However it does exit when I do systemctl status sunshine but it's inactive:
bazzite@bazzite:~$ systemctl status --user sunshine
○ sunshine.service - Self-hosted game stream host for Moonlight
Loaded: loaded (/usr/lib/systemd/user/sunshine.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/user/service.d
└─10-timeout-abort.conf
Active: inactive (dead)
bazzite@bazzite:~$ systemctl status --user sunshine
○ sunshine.service - Self-hosted game stream host for Moonlight
Loaded: loaded (/usr/lib/systemd/user/sunshine.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/user/service.d
└─10-timeout-abort.conf
Active: inactive (dead)
Maybe it's something to do with the xdg-desktop-autostart.target not starting the service...
12 replies