python3-cyberfusion-systemd-support 2.2.0__tar.gz → 2.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python3_cyberfusion_systemd_support-2.2.0 → python3_cyberfusion_systemd_support-2.3.1}/PKG-INFO +3 -2
- {python3_cyberfusion_systemd_support-2.2.0 → python3_cyberfusion_systemd_support-2.3.1}/README.md +1 -0
- {python3_cyberfusion_systemd_support-2.2.0 → python3_cyberfusion_systemd_support-2.3.1}/pyproject.toml +2 -2
- {python3_cyberfusion_systemd_support-2.2.0 → python3_cyberfusion_systemd_support-2.3.1}/src/cyberfusion/SystemdSupport/units.py +12 -0
- {python3_cyberfusion_systemd_support-2.2.0 → python3_cyberfusion_systemd_support-2.3.1}/src/python3_cyberfusion_systemd_support.egg-info/PKG-INFO +3 -2
- python3_cyberfusion_systemd_support-2.3.1/src/python3_cyberfusion_systemd_support.egg-info/requires.txt +1 -0
- python3_cyberfusion_systemd_support-2.2.0/src/python3_cyberfusion_systemd_support.egg-info/requires.txt +0 -1
- {python3_cyberfusion_systemd_support-2.2.0 → python3_cyberfusion_systemd_support-2.3.1}/setup.cfg +0 -0
- {python3_cyberfusion_systemd_support-2.2.0 → python3_cyberfusion_systemd_support-2.3.1}/src/cyberfusion/SystemdSupport/__init__.py +0 -0
- {python3_cyberfusion_systemd_support-2.2.0 → python3_cyberfusion_systemd_support-2.3.1}/src/cyberfusion/SystemdSupport/_constants.py +0 -0
- {python3_cyberfusion_systemd_support-2.2.0 → python3_cyberfusion_systemd_support-2.3.1}/src/cyberfusion/SystemdSupport/manager.py +0 -0
- {python3_cyberfusion_systemd_support-2.2.0 → python3_cyberfusion_systemd_support-2.3.1}/src/cyberfusion/SystemdSupport/tmp_files.py +0 -0
- {python3_cyberfusion_systemd_support-2.2.0 → python3_cyberfusion_systemd_support-2.3.1}/src/python3_cyberfusion_systemd_support.egg-info/SOURCES.txt +0 -0
- {python3_cyberfusion_systemd_support-2.2.0 → python3_cyberfusion_systemd_support-2.3.1}/src/python3_cyberfusion_systemd_support.egg-info/dependency_links.txt +0 -0
- {python3_cyberfusion_systemd_support-2.2.0 → python3_cyberfusion_systemd_support-2.3.1}/src/python3_cyberfusion_systemd_support.egg-info/top_level.txt +0 -0
{python3_cyberfusion_systemd_support-2.2.0 → python3_cyberfusion_systemd_support-2.3.1}/PKG-INFO
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python3-cyberfusion-systemd-support
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.1
|
|
4
4
|
Summary: Library for systemd.
|
|
5
5
|
Author-email: Cyberfusion <support@cyberfusion.io>
|
|
6
6
|
Project-URL: Source, https://github.com/CyberfusionIO/python3-cyberfusion-systemd-support
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
|
-
Requires-Dist: python3-cyberfusion-common~=2.
|
|
8
|
+
Requires-Dist: python3-cyberfusion-common~=2.12
|
|
9
9
|
|
|
10
10
|
# python3-cyberfusion-systemd-support
|
|
11
11
|
|
|
@@ -49,6 +49,7 @@ unit.reload()
|
|
|
49
49
|
|
|
50
50
|
print(unit.is_active)
|
|
51
51
|
print(unit.is_enabled)
|
|
52
|
+
print(unit.is_failed)
|
|
52
53
|
```
|
|
53
54
|
|
|
54
55
|
## Tmp files
|
|
@@ -4,14 +4,14 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python3-cyberfusion-systemd-support"
|
|
7
|
-
version = "2.
|
|
7
|
+
version = "2.3.1"
|
|
8
8
|
description = "Library for systemd."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
11
11
|
{ name = "Cyberfusion", email = "support@cyberfusion.io" },
|
|
12
12
|
]
|
|
13
13
|
dependencies = [
|
|
14
|
-
"python3-cyberfusion-common~=2.
|
|
14
|
+
"python3-cyberfusion-common~=2.12",
|
|
15
15
|
]
|
|
16
16
|
|
|
17
17
|
[project.urls]
|
|
@@ -145,6 +145,18 @@ class Unit:
|
|
|
145
145
|
|
|
146
146
|
return True
|
|
147
147
|
|
|
148
|
+
@property
|
|
149
|
+
def is_failed(self) -> bool:
|
|
150
|
+
"""Get if unit is enabled."""
|
|
151
|
+
try:
|
|
152
|
+
subprocess.run(
|
|
153
|
+
[SYSTEMCTL_BIN, "is-failed", "--quiet", self.name], check=True
|
|
154
|
+
)
|
|
155
|
+
except subprocess.CalledProcessError:
|
|
156
|
+
return False
|
|
157
|
+
|
|
158
|
+
return True
|
|
159
|
+
|
|
148
160
|
@staticmethod
|
|
149
161
|
def get_drop_in_directory(unit_name: str) -> str:
|
|
150
162
|
"""Get unit override directory."""
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python3-cyberfusion-systemd-support
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.1
|
|
4
4
|
Summary: Library for systemd.
|
|
5
5
|
Author-email: Cyberfusion <support@cyberfusion.io>
|
|
6
6
|
Project-URL: Source, https://github.com/CyberfusionIO/python3-cyberfusion-systemd-support
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
|
-
Requires-Dist: python3-cyberfusion-common~=2.
|
|
8
|
+
Requires-Dist: python3-cyberfusion-common~=2.12
|
|
9
9
|
|
|
10
10
|
# python3-cyberfusion-systemd-support
|
|
11
11
|
|
|
@@ -49,6 +49,7 @@ unit.reload()
|
|
|
49
49
|
|
|
50
50
|
print(unit.is_active)
|
|
51
51
|
print(unit.is_enabled)
|
|
52
|
+
print(unit.is_failed)
|
|
52
53
|
```
|
|
53
54
|
|
|
54
55
|
## Tmp files
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
python3-cyberfusion-common~=2.12
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
python3-cyberfusion-common~=2.0
|
{python3_cyberfusion_systemd_support-2.2.0 → python3_cyberfusion_systemd_support-2.3.1}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|