genvid.toolbox.SystemdTool¶
-
class
genvid.toolbox.
SystemdTool
(**kwargs)¶ Bases:
genvid.toolbox.service.ServiceTool
Base
ServiceTool
for Linux servers under systemd.-
BASE_COMMANDS
= {'restart': 'Restart a service.', 'install': 'Install the service.', 'uninstall': 'Uninstall the service.', 'stop': 'Stop a service.', 'prestart': 'Any updates to run before start.', 'start': 'Start an installed service.', 'poststart': 'Do any post-start setup necessary.', 'status': 'Check the status of the service.', 'reinstall': 'Reinstall the services.'}¶
-
install
(**config)¶
-
start
()¶
-
status
()¶
-
stop
()¶
-
uninstall
(clean: bool = False)¶
-