Commit 87eda905 authored by Olav Morken's avatar Olav Morken

Update to start/stop radvd through systemd

parent ecc3101b
......@@ -59,7 +59,7 @@ def up_ipv4():
def up_ipv6():
if subprocess.call(['/etc/init.d/radvd', 'start']) == 0:
if subprocess.call(['systemctl', 'start', 'radvd']) == 0:
logging.info("Successfully started radvd")
else:
logging.error("Failure starting radvd")
......@@ -73,7 +73,7 @@ def down_ipv4():
def down_ipv6():
if subprocess.call(['/etc/init.d/radvd', 'stop']) == 0:
if subprocess.call(['systemctl', 'stop', 'radvd']) == 0:
logging.info("Successfully stopped radvd")
else:
logging.error("Failure stopping radvd")
......
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