Bug 64215

Summary: presets not working
Product: systemd Reporter: Igor Savluk <agentsmith.hengsha.city>
Component: generalAssignee: systemd-bugs
Status: RESOLVED NOTABUG QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

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.