[systemd-devel] Inconsistent timeout properties name

Lennart Poettering lennart at poettering.net
Sat Feb 19 05:24:50 PST 2011


On Sat, 19.02.11 10:16, Andrey Borzenkov (arvidjaar at gmail.com) wrote:

> In manual:
> 
> JobTimeout
> RestartSec
> Timeout
> 
> while in systemctl output they are
> 
> JobTimeoutUSec
> RestartUSec
> TimeoutUSec

This one is actually done like this on purpose. The default unit of the
times when you configure them (and don't explcitily specify a unit) is
seconds all over the place, since that is most useful in most cases.

However, on the dbus interface (and 'systemctl show' shows just that) we
encode everything in usec, since that is our base unit for all times we
use internally.

Or in other words: the dbus interface is an API, and not necessarily
something the user should normally see, hence we hand out raw data. To
make this clear I changed (resp. added) the suffix "Usec" to these fields. 

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list