]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
task/samba: use SIGTERM to stop samba server
authorYan, Zheng <zyan@redhat.com>
Tue, 14 Apr 2015 09:05:40 +0000 (17:05 +0800)
committerGreg Farnum <gfarnum@redhat.com>
Tue, 27 Oct 2015 21:44:01 +0000 (14:44 -0700)
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 <zyan@redhat.com>
(cherry picked from commit 86bd6bc3771694cd9ee5cd071255f3cf4c40c812)

tasks/samba.py

index d5655fc9cbe737526a242cd6b36ffc6cbd560eaf..7a2abfb9be3e9cdf655d0882e7e69e1a4746bdd0 100644 (file)
@@ -161,7 +161,7 @@ def task(ctx, config):
         smbd_cmd = [
                 'sudo',
                 'daemon-helper',
-                'kill',
+                'term',
                 'nostdin',
                 '/usr/local/samba/sbin/smbd',
                 '-F',