chiark / gitweb /
run: introduce timer support option
authorWaLyong Cho <walyong.cho@samsung.com>
Tue, 9 Dec 2014 07:07:16 +0000 (16:07 +0900)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Dec 2014 17:19:40 +0000 (18:19 +0100)
commit4c213d6cf416917c61f82d8bee795b8f3a4c5372
treeec818f87acf9cd2a957a568af4740759f5cf03bf
parente82959c0e335b4078d48d4a848679ac6a6d99feb
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.
man/systemd-run.xml
src/core/dbus-manager.c
src/libsystemd/sd-bus/bus-util.c
src/run/run.c