main
Systemd
Create systemd service file
Source code in systemd_py/main.py
__init__(name, sections)
Create systemd service file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
Name of the systemd service |
required |
sections |
List[Section]
|
List of sections |
required |
Source code in systemd_py/main.py
create()
Build systemd service file
Returns:
Type | Description |
---|---|
str
|
systemd service file |
Source code in systemd_py/main.py
save(path)
Save systemd service file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
str
|
Path to save systemd service file |
required |
Returns:
Type | Description |
---|---|
None
|
None |