Library for systemd.
Project description
python3-cyberfusion-systemd-support
Library for systemd.
Install
PyPI
Run the following command to install the package from PyPI:
pip3 install python3-cyberfusion-systemd-support
Next, ensure you are working on a system that ships systemd.
Debian
Run the following commands to build a Debian package:
mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -uc
Configure
No configuration is supported.
Usage
Units
from cyberfusion.SystemdSupport.units import Unit
unit = Unit(f"example.{Unit.SUFFIX_SERVICE}")
unit.disable()
unit.stop()
unit.enable()
unit.restart()
unit.reload()
print(unit.is_active)
print(unit.is_enabled)
Tmp files
from cyberfusion.SystemdSupport.tmp_files import TmpFileConfigurationLine, TmpFileConfigurationFile
tmp_file_configuration_line = str(TmpFileConfigurationLine(type_="d", path="/tmp/example", mode="0755", user="example", group="example"))
tmp_file_configuration_file = TmpFileConfigurationFile(path="/etc/tmpfiles.d/example.conf")
tmp_file_configuration_file.create()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python3_cyberfusion_systemd_support-2.2.0.tar.gz.
File metadata
- Download URL: python3_cyberfusion_systemd_support-2.2.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54ec23c1600968f93a5803fc08f9fd248ae4ec936163f4615ea97f7cde0ba19c
|
|
| MD5 |
6cf36662a487974325486996c9adbb4d
|
|
| BLAKE2b-256 |
433ded1321bd67e50230b3ea93cca20602d7ebd2afde60477346e32efb7874dc
|
File details
Details for the file python3_cyberfusion_systemd_support-2.2.0-py3-none-any.whl.
File metadata
- Download URL: python3_cyberfusion_systemd_support-2.2.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac12c6d6c944da11d7b94d8a5f335af37f7a56ab3ffb9093e62299096e69d73e
|
|
| MD5 |
f287edce4f09c71211d9e6746c15d727
|
|
| BLAKE2b-256 |
fe4595c21ac3110b4354df966948469b49cdaff3d0687a38143a934a2d4d00ad
|