From c87eb7255e91131681d490a06bcea44fb9d880f9 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 6 Mar 2019 14:32:41 +0800 Subject: [PATCH] Update index.py --- plugins/rsyncd/index.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/rsyncd/index.py b/plugins/rsyncd/index.py index f33d2a063..1f592f6e3 100755 --- a/plugins/rsyncd/index.py +++ b/plugins/rsyncd/index.py @@ -69,7 +69,7 @@ def start(): if public.isAppleSystem(): return "Apple Computer does not support" - data = public.execShell('systemctl start smb') + data = public.execShell('systemctl start rsyncd.service') if data[1] == '': return 'ok' return 'fail' @@ -78,7 +78,7 @@ def start(): def stop(): if public.isAppleSystem(): return "Apple Computer does not support" - data = public.execShell('systemctl stop smb') + data = public.execShell('systemctl stop rsyncd.service') if data[1] == '': return 'ok' return 'fail' @@ -87,7 +87,7 @@ def stop(): def restart(): if public.isAppleSystem(): return "Apple Computer does not support" - data = public.execShell('systemctl restart smb') + data = public.execShell('systemctl restart rsyncd.service') if data[1] == '': return 'ok' return 'fail' @@ -97,7 +97,7 @@ def reload(): if public.isAppleSystem(): return "Apple Computer does not support" - data = public.execShell('systemctl reload smb') + data = public.execShell('systemctl reload rsyncd.service') if data[1] == '': return 'ok' return 'fail'