Add restart command
This commit is contained in:
parent
b83e91539a
commit
90ed6e64f9
2
main.py
2
main.py
@ -79,7 +79,7 @@ async def status(ctx):
|
|||||||
async def status(ctx, *args):
|
async def status(ctx, *args):
|
||||||
"""Exécute une commande systemd"""
|
"""Exécute une commande systemd"""
|
||||||
error = None
|
error = None
|
||||||
commands = ["start", "stop", "enable", "disable"]
|
commands = ["start", "stop", "enable", "disable", "restart"]
|
||||||
if len(args) < 2:
|
if len(args) < 2:
|
||||||
error = "Paramètres manquants."
|
error = "Paramètres manquants."
|
||||||
elif args[0] not in commands:
|
elif args[0] not in commands:
|
||||||
|
Loading…
Reference in New Issue
Block a user