summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorWaLyong Cho <walyong.cho@samsung.com>2014-12-09 16:07:16 +0900
committerLennart Poettering <lennart@poettering.net>2014-12-09 18:19:40 +0100
commit4c213d6cf416917c61f82d8bee795b8f3a4c5372 (patch)
treeec818f87acf9cd2a957a568af4740759f5cf03bf /src/core
parente82959c0e335b4078d48d4a848679ac6a6d99feb (diff)
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.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/dbus-manager.c8
1 files changed, 5 insertions, 3 deletions
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)