genvid.toolbox.SystemdTool

class genvid.toolbox.SystemdTool(**kwargs)

ベースクラス: ServiceTool

systemd の Linux サーバー用基本 ServiceTool

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.'}

ベースコマンドのリストと、サービスのヘルプテキスト。

install(**config)

サービスの構成をインストールする。

uninstall(clean: bool = False)

サービスの構成をアンインストールする。

start()
stop()
status()