genvid.toolbox.SystemdTool

class genvid.toolbox.SystemdTool(**kwargs)

Bases: genvid.toolbox.service.ServiceTool

Base ServiceTool for Linux servers under systemd.

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