Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

Beginners • Re: starting systemd service after GUI is up

$
0
0
Aha: I didn't know I needed to enable the service after changing it

More importantly, enabling a service creates links; changing the service definition and rebooting doesn't delete these links. So, the service has to be disabled before changing it (and doing a daemon-reload or reboot.) Or, delete the incorrect links (in /etc/systemd/system/xxx.target.wants).

On the rare occasion I've needed to change the target(s) for a service I've done

Code:

sudo systemctl disable service-namesudo systemctl daemon-reloadsudo systemctl enable service-namesudo systemctl start service-name
I should really have made that connection earlier. Sorry.
So, got it working; thanks for the help!

However, now vlc can't use the default audio device. Sigh, always something.

Can't help with that, other than to suggest you may need to look at setting additional environment variables, running something in ExecStartPre or other additional steps. I do very little with audio.

Statistics: Posted by thagrol — Fri Jan 16, 2026 10:00 pm



Viewing all articles
Browse latest Browse all 8013

Trending Articles