Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo systemctl enable ly.service - The unit files have no installation config #648

Closed
simonfogliato opened this issue Jul 11, 2024 · 3 comments
Labels
ok This issue or pull request was confirmed/reviewed

Comments

@simonfogliato
Copy link
Contributor

When the following command is run:

sudo systemctl enable ly.service

Then the system returns a note.

The unit files have no installation config (WantedBy=, RequiredBy=, UpheldBy=,
Also=, or Alias= settings in the [Install] section, and DefaultInstance= for
template units). This means they are not meant to be enabled or disabled using systemctl.
 
Possible reasons for having these kinds of units are:
• A unit may be statically enabled by being symlinked from another unit's
  .wants/, .requires/, or .upholds/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
  a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
  D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
  instance name specified.
@AnErrupTion
Copy link
Collaborator

@simonfogliato This should be fixed by #623.

@AnErrupTion AnErrupTion added the ok This issue or pull request was confirmed/reviewed label Jul 12, 2024
@christian-heusel
Copy link
Contributor

Which systemd version are you on? This was an issue with a recent systemd version: systemd/systemd#33411

@simonfogliato
Copy link
Contributor Author

This is now fixed for me using Arch Linux:

  • systemd 256.4-1
  • ly 1.0.0-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok This issue or pull request was confirmed/reviewed
Projects
None yet
Development

No branches or pull requests

3 participants