summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormkorobeinikov <92354771+mkorobeinikov@users.noreply.github.com>2022-08-16 10:02:46 +1000
committerGitHub <noreply@github.com>2022-08-16 10:02:46 +1000
commit160262edaf1b6b6405baa5c65f69573225cbe208 (patch)
tree6285f7d95fc1a4c662b20bee0d503350e7cd8390 /src
parente41685a2f56cca0a53b4f8c084f61a85cf561c80 (diff)
downloadvyos-1x-160262edaf1b6b6405baa5c65f69573225cbe208.tar.gz
vyos-1x-160262edaf1b6b6405baa5c65f69573225cbe208.zip
dhcp-relay: T4601: restart dhcp relay-agent
The command "restart dhcp relay-agent" doesn't restart "isc-dhcp-relay" service.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/restart_dhcp_relay.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/op_mode/restart_dhcp_relay.py b/src/op_mode/restart_dhcp_relay.py
index db5a48970..9203c009f 100755
--- a/src/op_mode/restart_dhcp_relay.py
+++ b/src/op_mode/restart_dhcp_relay.py
@@ -43,7 +43,7 @@ if __name__ == '__main__':
if commit_in_progress():
print('Cannot restart DHCP relay while a commit is in progress')
exit(1)
- call('systemctl restart isc-dhcp-server.service')
+ call('systemctl restart isc-dhcp-relay.service')
sys.exit(0)
elif args.ipv6:
@@ -54,7 +54,7 @@ if __name__ == '__main__':
if commit_in_progress():
print('Cannot restart DHCPv6 relay while commit is in progress')
exit(1)
- call('systemctl restart isc-dhcp-server6.service')
+ call('systemctl restart isc-dhcp-relay6.service')
sys.exit(0)
else: