RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 968374 - systemd-tmpfiles doesn't accept relative paths to configuration files
Summary: systemd-tmpfiles doesn't accept relative paths to configuration files
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-29 14:55 UTC by Jakub Filak
Modified: 2016-12-01 00:44 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-23 15:47:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
A proposed patch for solution 1 from comment #0 (1.73 KB, patch)
2013-05-29 14:55 UTC, Jakub Filak
no flags Details | Diff

Description Jakub Filak 2013-05-29 14:55:59 UTC
Created attachment 754432 [details]
A proposed patch for solution 1 from comment #0

Description of problem:
If you want to test your new configuration file and you pass a relative file system path as the last argument of systemd-tmpfiles, systemd-tmpfiles prints the following message:
"Failed to open 'my_tmpfiles.conf', ignoring: No such file or directory"

The help text doesn't say that an absolute path is required.

$ systemd-tmpfiles --help
systemd-tmpfiles [OPTIONS...] [CONFIGURATION FILE...]

Creates, deletes and cleans up volatile and temporary files and directories.

  -h --help             Show this help
     --create           Create marked files/directories
     --clean            Clean up marked directories
     --remove           Remove marked files/directories
     --prefix=PATH      Only apply rules that apply to paths with the specified prefix

Version-Release number of selected component (if applicable):
systemd-204-2.el7.1.x86_64

Any one of these solutions would be fine:
1) if no standard tmpfiles directory contains the configuration file, systemd-tmpfiles tries to open the configuration file from the current directory.
2) more verbose help text 
3) more precise error message

Comment 2 Lukáš Nykrýn 2013-07-23 15:47:24 UTC
Documented in tmpfiles.d(5).

Comment 3 Jakub Filak 2013-07-23 16:14:21 UTC
Thank you for taking the time to look at this bug!

I'm afraid that the right documentation is systemd-tmpfiles(8) because tmpfiles.d(5) describes only the configuration format and the purpose of files placed in the tmpfiles.d directories.


Note You need to log in before you can comment on or make changes to this bug.