]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
task/samba: use SIGTERM to stop samba server
authorYan, Zheng <zyan@redhat.com>
Tue, 14 Apr 2015 09:05:40 +0000 (17:05 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 14 Apr 2015 09:07:33 +0000 (17:07 +0800)
commit86bd6bc3771694cd9ee5cd071255f3cf4c40c812
tree4b196e877b13c86bba9026e545f3ed215d7a9f96
parent25aa9a3cf935a1936f31562615bb6ae6dfd6ec40
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 <zyan@redhat.com>
tasks/samba.py