genvid.toolbox.SystemdTool

class genvid.toolbox.SystemdTool(**kwargs)

Bases: ServiceTool

Base ServiceTool for Linux servers under systemd.

BASE_COMMANDS = {'install': 'Install the service.', 'poststart': 'Do any post-start setup necessary.', 'prestart': 'Any updates to run before start.', 'reinstall': 'Reinstall the services.', 'restart': 'Restart a service.', 'start': 'Start an installed service.', 'status': 'Check the status of the service.', 'stop': 'Stop a service.', 'uninstall': 'Uninstall the service.'}

List of base commands and their help text for the service.

install(**config)

Install the configuration of the service.

uninstall(clean: bool = False)

Uninstall the configuration of the service.

start()
stop()
status()