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

minus-suffixed types for commands with ignored errors #9

Open
Arfrever opened this issue Dec 26, 2018 · 0 comments
Open

minus-suffixed types for commands with ignored errors #9

Arfrever opened this issue Dec 26, 2018 · 0 comments

Comments

@Arfrever
Copy link

Arfrever commented Dec 26, 2018

systemd 240 has this new feature (added here by this pull request):

        * tmpfiles.d/ line types may now be suffixed with a '-' character, in
          which case the respective line failing is ignored.

In tmpfiles.d(5) man page it is described:

The type consists of a single letter and optionally an exclamation mark and/or minus sign.
...
If the minus sign is used, this line failing to run successfully during create (and only create) will not cause the execution of systemd-tmpfiles to return an error.

For example:

# Modify sysfs but don't fail if we are in a container with a read-only /proc
w- /proc/sys/vm/swappiness - - - - 10
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

1 participant