From 4c213d6cf416917c61f82d8bee795b8f3a4c5372 Mon Sep 17 00:00:00 2001 From: WaLyong Cho Date: Tue, 9 Dec 2014 16:07:16 +0900 Subject: run: introduce timer support option Support timer options --on-active=, --on-boot=, --on-startup=, --on-unit-active=, --on-unit-inactive=, --on-calendar=. Each options corresponding with OnActiveSec=, OnBootSec=, OnStartupSec=, OnUnitActiveSec=, OnUnitInactiveSec=, OnCalendar= of timer respectively. And OnCalendar= and WakeSystem= supported by --timer-property= option like --property= of systemd-run. And if --unit= option and timer options are specified the command can be omitted. In this case, systemd-run assumes the target service is already loaded. And just try to generate transient timer unit only. --- src/core/dbus-manager.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c index 5fe06f927d..140a413c17 100644 --- a/src/core/dbus-manager.c +++ b/src/core/dbus-manager.c @@ -681,9 +681,11 @@ static int transient_aux_units_from_message( if (r < 0 && r != -EEXIST) return r; - r = unit_load(u); - if (r < 0) - return r; + if (r != -EEXIST) { + r = unit_load(u); + if (r < 0) + return r; + } r = sd_bus_message_exit_container(message); if (r < 0) -- cgit v1.2.3-54-g00ecf