[kubic-bugs] [Bug 1093460] New: Fail to start systemd timer
http://bugzilla.opensuse.org/show_bug.cgi?id=1093460 Bug ID: 1093460 Summary: Fail to start systemd timer Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kubic Assignee: kubic-bugs@opensuse.org Reporter: pgonin@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I created a systemd timer with the following file /etc/systemd/system/hourly-timer.target [Unit] Description=Hourly Timer Target StopWhenUnneeded=yes systemd fails to start the timer: # systemctl start /etc/systemd/system/hourly-timer.timer Failed to start etc-systemd-system-hourly\x2dtimer.timer.mount: Unit etc-systemd-system-hourly\x2dtimer.timer.mount not found. -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1093460 http://bugzilla.opensuse.org/show_bug.cgi?id=1093460#c1 Richard Brown <rbrown@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rbrown@suse.com Resolution|--- |INVALID --- Comment #1 from Richard Brown <rbrown@suse.com> --- (In reply to Paul Gonin from comment #0)
I created a systemd timer with the following file
/etc/systemd/system/hourly-timer.target [Unit] Description=Hourly Timer Target StopWhenUnneeded=yes
This is not a valid timer. - The filename does not end in .timer - The file does not contain a [Timer] nor an [Install] section
systemd fails to start the timer:
# systemctl start /etc/systemd/system/hourly-timer.timer
This is not the valid syntax for enabling a timer systemctl enable $foo.timer would be correct By using the whole file path (and possibly an invalid one given this path ends in .timer where your above file does not) systemctl is going to think you are trying to reference a mount unit.
Failed to start etc-systemd-system-hourly\x2dtimer.timer.mount: Unit etc-systemd-system-hourly\x2dtimer.timer.mount not found.
This is expected when using invalid syntax - systemctrl thought the filepath was related to a mount point, so tried to find a systemd mount unit related to that mount point. -- You are receiving this mail because: You are the assignee for the bug.
participants (1)
-
bugzilla_noreply@novell.com