Package: ksmbd-tools
Version: 3.4.7-1
Severity: minor
X-Debbugs-Cc: edidecarswel...@yahoo.com
After installing the ksmbd-tools package, it enables and starts `ksmbd.service`
by default, which starts `ksmbd.mountd`. The problem arises when `ksmbd.mountd`
spawns a `ksmbd-worker` and the worker attempts to read the nonexistent config
file `/etc/ksmbd/ksmbd.conf`. An example file `/etc/ksmbd/ksmbd.conf.example`
is provided, that requires user intervention to get the proper config setup.
Because of this disconnect, the worker process dies and `ksmbd.mountd` tries to
spawn another one in its place. This happens almost every second, flooding the
system logs, and continues indefinitely until the user stops `ksmbd.service` or
places a file at `/etc/ksmbd/ksmbd.conf` (even an empty file works).
I see two solutions here:
1. Create an empty file at the expected location, or
2. Add a `ConditionPathExists` statement to the service:
mkdir /etc/systemd/system/ksmbd.service.d
cat