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

prestart path should not be near unitfiles #138

Open
jsoref opened this issue Dec 27, 2018 · 2 comments
Open

prestart path should not be near unitfiles #138

jsoref opened this issue Dec 27, 2018 · 2 comments

Comments

@jsoref
Copy link

jsoref commented Dec 27, 2018

https://github.com/jordansissel/pleaserun/search?q=prestart.sh&unscoped_q=prestart.sh

Files in systemd directories should be things like:
.service, .slice, .target, .wants, .timer, .socket, etc. -- each of which is a file type defined, managed, and parsed by systemd.

A simple start would be to replace unit_path with prestart_path so that it's at least vaguely easy to separate.

jsoref added a commit to jsoref/pleaserun that referenced this issue Dec 27, 2018
@jordansissel
Copy link
Owner

jordansissel commented Dec 27, 2018 via email

@jsoref
Copy link
Author

jsoref commented Dec 27, 2018

The short of it is that /etc/systemd/system and similar is for configuration files, not executable files.

Beyond that, systemd at times adds additional file extensions, so essentially it reserves the directories for its own purpose, if you aren't placing a file type that it promises to support, you potentially interfere with a future behavior of systemd.

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