Skip to content

Working in ability to enable and disable units #7

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

senderic
Copy link

  • Introduced a Struct and Pair class as needed by dbus-java
  • Updated various versions

I am labeling this version as 2.2.0-eks so if this commit is accepted,
be sure to remove -eks.

FYI - For now, I needed to remove the -SNAPSHOT versioning since I will need to use this version in my system.


In a working state. Needed to also use a special struct class for the disableUnitFiles call (+3 squashed commit)

Squashed commit:

[9dde539] Found that enableUnitFiles may perform what I need to get units started.

The List<UnitFileChange> is not the proper return type. Some research lead me to AgNO3 project that uses a Tuple type of structure to hold the return type: https://github.com/AgNO3/code/blob/main/orchestrator/agent/system/eu.agno3.orchestrator.system.init.systemd/src/main/java/org/freedesktop/systemd1/Manager.java

Still experimenting...

[7197b50] WIP: TDD and fleshing out unit creation with dbus

[fb4e92d] Starting work towards creating/update/delete units

- Introduced a Struct and Pair class as needed by dbus-java
- Updated various versions

I am labeling this version as 2.2.0-eks so if this commit is accepted,
be sure to remove -eks.

---

In a working state. Needed to also use a special struct class for the disableUnitFiles call (+3 squashed commit)

Squashed commit:

[9dde539] Found that `enableUnitFiles` may perform what I need to get units started.

The `List<UnitFileChange>` is not the proper return type. Some research lead me to AgNO3 project that uses a Tuple type of structure to hold the return type: https://github.com/AgNO3/code/blob/main/orchestrator/agent/system/eu.agno3.orchestrator.system.init.systemd/src/main/java/org/freedesktop/systemd1/Manager.java

Still experimenting...

[7197b50] WIP: TDD and fleshing out unit creation with dbus

[fb4e92d] Starting work towards creating/update/delete units

- Specifically service units for now.
- Using my own version number
- Using lombok to reduce builder code. thjomnx#6 (comment)
@thjomnx
Copy link
Owner

thjomnx commented Mar 16, 2022

FYI, not sure if you noticed: Issue #4 looks pretty much related.

Happy to see some attempt to fix it, as I didn't find the time ever since... 👍

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants