From: Yan, Zheng Date: Tue, 14 Apr 2015 09:05:40 +0000 (+0800) Subject: task/samba: use SIGTERM to stop samba server X-Git-Tag: v10.2.6~165^2^2~482^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2ed6de6cf9e19aeec8f45db129bfb070e5ef93d0;p=ceph.git task/samba: use SIGTERM to stop samba server man samba(8) contains sentences: To shut down a user's smbd process it is recommended that SIGKILL (-9) NOT be used, except as a last resort, as this may leave the shared memory area in an inconsistent state. The safe way to terminate an smbd is to send it a SIGTERM (-15) signal and wait for it to die on its own. Signed-off-by: Yan, Zheng (cherry picked from commit 86bd6bc3771694cd9ee5cd071255f3cf4c40c812) --- diff --git a/tasks/samba.py b/tasks/samba.py index e9528d163275..c8768f4bbce0 100644 --- a/tasks/samba.py +++ b/tasks/samba.py @@ -164,7 +164,7 @@ def task(ctx, config): smbd_cmd = [ 'sudo', 'daemon-helper', - 'kill', + 'term', 'nostdin', '/usr/local/samba/sbin/smbd', '-F',