Bug 64215 - presets not working
Summary: presets not working
Status: RESOLVED NOTABUG
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-04 15:56 UTC by Igor Savluk
Modified: 2013-05-06 18:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Igor Savluk 2013-05-04 15:56:24 UTC
In /etc/systemd/system-preset i make 99-test.preset . Now try systemctl preset nad see on out: Too few arguments.
Ok then i try systemctl preset test and see on out: Failed to issue method call: No such file or directory.
I try test, 99-test, 99-test.preset all time i see: Failed to issue method call: No such file or directory.
Comment 1 Igor Savluk 2013-05-04 16:47:25 UTC
In gentoo when i try systemctl preset test in out: Operation failed: Invalid argument.
Comment 2 Lennart Poettering 2013-05-06 18:56:45 UTC
I think htere's a misunderstanding here what preset does.

If you add "eanble foobar.service" to a preset file, then

"systemctl preset foobar.service" will cause this unit file do be enabled.

Hence, "systemctl preset" expects at least parameter, of the unit name to reset to the preset default. If you specify just "test" as parameter, then this would cause "test.service" to be reset to the preset default, but since "test.service" doesn't exist on your machine this fails.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.