ksmbd-tools: Fix ksmbd service is semi-killed at system startup
authorGeorgi Valkov <gvalkov@abv.bg>
Sun, 28 Nov 2021 17:22:56 +0000 (19:22 +0200)
committerRosen Penev <rosenp@gmail.com>
Mon, 29 Nov 2021 09:24:09 +0000 (01:24 -0800)
commit4af04cdc05af1e78dab310550fae5bae21d51c8c
tree2778c32fd885f437705e21403bf4814bb7aa7f18
parent06db04ba6375dd42f2858a96cb823ad5834c56bb
ksmbd-tools: Fix ksmbd service is semi-killed at system startup

The configuration for the ksmbd service is auto-generated when
the OpenWRT configuration changes, and also during startup,
hence ksmbd.init has to reload the kernel module. It does that by
calling kill_server, which does not perform cleanup. This results
in ksmbd being killed but not restarted properly during boot.
This patch resolves the issue by using stop_service, which performs
proper cleanup.

https://forum.openwrt.org/t/ksmbd-samba3-4-alternative-ex-cifsd-smbd-package-support-thread/51695/68

Signed-off-by: Georgi Valkov <gvalkov@abv.bg>
net/ksmbd-tools/Makefile
net/ksmbd-tools/files/ksmbd.init