genvid.toolbox.SystemdTool

class genvid.toolbox.SystemdTool(**kwargs)

Bases: genvid.toolbox.service.ServiceTool

Base ServiceTool for Linux servers under systemd.

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