Skip to content

AP-Sensing/chrony-dbus-service

Repository files navigation

This is the README for chrony-dbus-service.

What is chrony?

chrony is a versatile implementation of the Network Time Protocol (NTP).

see gitlab.com/chrony

What is chrony-dbus-service?

To configure chronyd with the chronyc command line tool, each command has to written in a parsable line of text. Executing chronyc from within another application doesn't provide a good usability and in case that the chronyc parser is changed it will cause maintainability issues. The chrony-dbus-service provides partial functionality to configuring chornyd like it would be possible with chronyc, but instead this functionality is provided as an accessible DBus interface API. To compile completely in C++ the chrony sources are downloaded and patched to be usable as a header-only library.

Features

  • getSources: Lists chronyd sources like calling chronyc sources
  • addServers: Adds NTP servers to chronyd like calling chronyc add server
  • deleteServers: Removes NTP servers from chronyd like calling chronyc delete
  • addManualTime: Adds a manual time entry to chronyd like calling chronyc settime
  • clearManualTimeList: Removes all manual time entries from chronyd like calling chronyc manual delete for each entry
  • getManualTimeList: Lists chronyd manual time entries like calling chronyc manual list
  • setManualTimeEnabled: Enables or disables chronyd manual time entries like calling chronyc manual on or chronyc manual off

How to use chrony-dbus-service?

You can use any DBus compatible library like e.g. libdbus-c++ or simppl. For an example see chronydbustest.cpp.

About

D-Bus interface for crony.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •