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

Documentation: User Units #28

Open
corporealfunk opened this issue Mar 18, 2021 · 1 comment
Open

Documentation: User Units #28

corporealfunk opened this issue Mar 18, 2021 · 1 comment

Comments

@corporealfunk
Copy link

Documentation Update:

If you are using a "user" service, and you want the units to start on boot, you will need to the following:

  1. As root or sudo: loginctl enable-linger USERNAME
    This ensures the user specified by USERNAME can run services outside of a login session.
  2. In your repo, your Unit must specify the following WantedBy target (the multi-user.target will not work in a user unit):
    [Install]
    WantedBy = default.target
dapi added a commit to BrandyMint/capistrano-systemd-multiservice that referenced this issue Nov 8, 2021
dapi added a commit to BrandyMint/capistrano-systemd-multiservice that referenced this issue Nov 8, 2021
dapi added a commit to BrandyMint/capistrano-systemd-multiservice that referenced this issue Nov 8, 2021
@HLFH
Copy link

HLFH commented Jun 23, 2023

@corporealfunk I have added the documentation, the code fixes from @dapi (+ completed the rspec tests) in this fork: https://github.com/HLFH/capistrano-systemd-ng.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants