Add restart command

This commit is contained in:
augustin64 2022-08-26 17:56:01 +02:00
parent b83e91539a
commit 90ed6e64f9

View File

@ -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: