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