Commit 19ecce00 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

Run.py: remove restart command

As running stop and then start is the default behavior for daemon managing tools
restart command, the current restart command looks pointless.
parent bfdc9965
......@@ -133,7 +133,6 @@ def main():
group = parser.add_mutually_exclusive_group(required=True)
group.add_argument("-start", "--start", action="store_true", default=False, help="Start PIM")
group.add_argument("-stop", "--stop", action="store_true", default=False, help="Stop PIM")
group.add_argument("-restart", "--restart", action="store_true", default=False, help="Restart PIM")
group.add_argument("-li", "--list_interfaces", action="store_true", default=False, help="List All PIM Interfaces. "
"Use -4 or -6 to specify IPv4 or IPv6 interfaces.")
group.add_argument("-ln", "--list_neighbors", action="store_true", default=False, help="List All PIM Neighbors. "
......@@ -210,9 +209,6 @@ def main():
client_socket(args)
daemon.stop()
sys.exit(0)
elif args.restart:
daemon.restart()
sys.exit(0)
elif args.config:
try:
from pimdm import Config
......
......@@ -107,11 +107,6 @@ class Daemon:
print(str(err.args))
sys.exit(1)
def restart(self):
"""Restart the Daemon."""
self.stop()
self.start()
def run(self):
"""You should override this method when you subclass Daemon.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment