diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-20 00:00:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-20 00:00:11 +0000 |
commit | ca7fcaa76aaf1f94284894a8d9a01bb153e80b11 (patch) | |
tree | dcfb443cd20285c353c22c05f43f96ca3d3161a8 /net-fs/ksmbd-tools/files/ksmbd.initd | |
parent | 150a86a9cb006b4800d6517d58532b8a556fec1e (diff) |
gentoo auto-resync : 20:01:2023 - 00:00:11
Diffstat (limited to 'net-fs/ksmbd-tools/files/ksmbd.initd')
-rw-r--r-- | net-fs/ksmbd-tools/files/ksmbd.initd | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/net-fs/ksmbd-tools/files/ksmbd.initd b/net-fs/ksmbd-tools/files/ksmbd.initd index 744125c642dd..86feb90b8da1 100644 --- a/net-fs/ksmbd-tools/files/ksmbd.initd +++ b/net-fs/ksmbd-tools/files/ksmbd.initd @@ -3,6 +3,7 @@ # Distributed under the terms of the GNU General Public License v2 KSMBD_CONF="${KSMBD_CONF:-/etc/ksmbd/ksmbd.conf}" +KSMBD_OPTS="${KSMBD_OPTS:-}" depend() { need localmount @@ -13,17 +14,25 @@ description="ksmbd userspace daemon" command="/sbin/ksmbd.mountd" command_control="/sbin/ksmbd.control" -command_args="-s" +command_args="--config=${KSMBD_CONF} ${KSMBD_OPTS}" + +extra_started_commands="reload" required_files="${KSMBD_CONF}" +reload() { + ebegin "Reloading ${RC_SVCNAME}" + "${command_control}" --reload + eend $? +} + start_pre() { - /sbin/modprobe ksmbd || return 1 + /sbin/modprobe -q ksmbd || return 0 } stop() { ebegin "Stopping ${RC_SVCNAME}" - "${command_control}" -s + "${command_control}" --shutdown eend $? } |