Linux – What exactly `systemctl –user enable SERVICE` means

arch linuxsystemd

I expected systemctl --user enable SERVICE to start the service on login, which is not happening. Then what is it supposed to mean?

Best Answer

It makes the unit start on first login of a user, but for that corresponding unit file should have WantedBy = default.target or something along the lines. Because when user instance of systemd starts, it brings up the default.target target.

Related Question