From 90ed6e64f90002dfb25d9b9bf5b27e9ccc308716 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Fri, 26 Aug 2022 17:56:01 +0200 Subject: [PATCH] Add restart command --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 531101a..94c40d4 100755 --- a/main.py +++ b/main.py @@ -79,7 +79,7 @@ async def status(ctx): async def status(ctx, *args): """Exécute une commande systemd""" error = None - commands = ["start", "stop", "enable", "disable"] + commands = ["start", "stop", "enable", "disable", "restart"] if len(args) < 2: error = "Paramètres manquants." elif args[0] not in commands: