All my ducks seem to be in order and the correct configs in the right place. But i keep getting this message. As you can see the file exists. It is not empty, but systemctl cannot find it. Any help would be very very appreciated.
•fedora 40 xfce spin •kernel 6.9.9.200 •fucking chromebook
I think you need to set the execute bit on your service file.
sudo chmod +x <your service file>
Lennart’s Cancer strikes again.
I don’t know much about systemd, but i assume the file should be owned by root? It looks like it isn’t, so try chown root:root spotifyd.service
I’m not sure spotifyd is just spotify (Edit: I checked, its some kind of spotify client meant to be run as a daemon? No idea what permissions that needs)
And the user that executes a service isn’t determined by who owns the service file, there is a user option in the service config
Why are you running Spotify as a service? I don’t think that’s what they mean by SaaS!
Where is the service file located on your system?
Did you create it with sudo systemctl edit --force --full
, or did you use a text editor (or was it automatically generated by an installer)?
I made the file this way.
Cd /etc/systemd/system && touch spotifyd.service
Sudo nano -l spotifyd.service
Wrote, saved and quit. Then the commands above. I havent tried sudo systemctl edit —force —full
You surely need to explicitly cause systemd
to process changes after writing to a file. I would be very surprised if it reacted to file system changes automatically.
For example, I recall that I need to execute a command like systemctl daemon-reload
after editing a service
file: https://unix.stackexchange.com/questions/364782/what-does-systemctl-daemon-reload-do
You might get more useful information from resources like https://www.man7.org/linux/man-pages/man1/systemctl.1.html