Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add StartUnit operation #103

Merged
merged 3 commits into from
Feb 2, 2023
Merged

Commits on Feb 1, 2023

  1. Add systemd_request_set_userdata()

    This is useful to add per-request-type data to the request.
    
    Signed-off-by: Alexander Larsson <alexl@redhat.com>
    alexlarsson committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    34c03a8 View commit details
    Browse the repository at this point in the history
  2. Agent: Add code to track when systemd jobs complete

    We're gonna need this to track when our requests complete.
    
    Signed-off-by: Alexander Larsson <alexl@redhat.com>
    alexlarsson committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    7ceb665 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2023

  1. Add StartUnit operation

    This calls StartUnit on the agent, and if that succeeds it signals
    the availability of a new job object and returns its object path.
    
    Eventually the agent will detect the matching JobRemoved signal from
    systemd and will send a JobDone to the manager, which will then
    emit a JobRemoved on the hirte job object.
    
    Compared to the dbus API document some things are missing:
     * There is no queueing of conflicting operations
     * We don't support properties on the Job object.
    
    Signed-off-by: Alexander Larsson <alexl@redhat.com>
    alexlarsson committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    ad2afc5 View commit details
    Browse the repository at this point in the history