Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Investigate whether we can put our unit files in a separate location from the standard unit files #8

Closed
soenkeliebau opened this issue Nov 2, 2020 · 3 comments
Assignees

Comments

@soenkeliebau
Copy link
Member

No description provided.

@ohessel ohessel self-assigned this Nov 26, 2020
@ohessel
Copy link
Collaborator

ohessel commented Nov 27, 2020

Multiple sources tell:
systemd units may reside wherever they want they just need to be accessible, and be installed by systemctl.
This will create a symlink at the standard path, but we're tidy :-)

If the service unit file is not located within one of the known systemd file paths, you can provide a file path to the service unit file you wish to enable:

sudo systemctl enable /path/to/myservice.service

However, this file needs to be accessible by systemd at startup. For example, this means files underneath /home or /var are not allowed, unless those directories are located on the root file system.

source: The most comprehensive source (in addition to the unreadable "standard documentation) can be found here:
https://www.linode.com/docs/guides/introduction-to-systemctl

@soenkeliebau
Copy link
Member Author

soenkeliebau commented Jan 7, 2021

I've created stackabletech/documentation#37 for this.

@soenkeliebau
Copy link
Member Author

I believe the ADR solves this for now.

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

No branches or pull requests

2 participants