diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-08-26 14:53:16 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2018-08-26 14:53:16 +0200 |
commit | 81f0f401e2f255167ffa33ca3b300fd16540e5e6 (patch) | |
tree | 1245375010c95d9e96029b8bf5f1f9fd38ec24d5 /src/conf_mode/ssh.py | |
parent | bbc698be2fcafad4e803fc01ec89f44a3aa20782 (diff) | |
parent | 4d222bc14c23ba010b6e245ff35ddb766401b20d (diff) | |
download | vyos-1x-81f0f401e2f255167ffa33ca3b300fd16540e5e6.tar.gz vyos-1x-81f0f401e2f255167ffa33ca3b300fd16540e5e6.zip |
Merge branch 'tftp-server' into current
* tftp-server:
T792: add TFTP server functionality
ssh.py: start/stop service via systemctl
ntp.py: start/stop service via systemctl
Diffstat (limited to 'src/conf_mode/ssh.py')
-rwxr-xr-x | src/conf_mode/ssh.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/ssh.py b/src/conf_mode/ssh.py index f1ac19473..beca7bb9a 100755 --- a/src/conf_mode/ssh.py +++ b/src/conf_mode/ssh.py @@ -236,10 +236,10 @@ def generate(ssh): def apply(ssh): if ssh is not None and 'port' in ssh.keys(): - os.system("sudo systemctl restart ssh") + os.system("sudo systemctl restart ssh.service") else: # SSH access is removed in the commit - os.system("sudo systemctl stop ssh") + os.system("sudo systemctl stop ssh.service") os.unlink(config_file) return None |