diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
commit | 93a93e9a3b53c1a73142a305ea1f8136846942ee (patch) | |
tree | b9791a06ab3284e27b568412c59316c66240c682 /net-fs/ksmbd-tools/files | |
parent | 2771f79232c273bc2a57d23bf335dd81ccf6af28 (diff) |
gentoo resync : 22.12.2021
Diffstat (limited to 'net-fs/ksmbd-tools/files')
-rw-r--r-- | net-fs/ksmbd-tools/files/confd | 5 | ||||
-rw-r--r-- | net-fs/ksmbd-tools/files/initd | 32 |
2 files changed, 37 insertions, 0 deletions
diff --git a/net-fs/ksmbd-tools/files/confd b/net-fs/ksmbd-tools/files/confd new file mode 100644 index 000000000000..81248468d530 --- /dev/null +++ b/net-fs/ksmbd-tools/files/confd @@ -0,0 +1,5 @@ +# /etc/conf.d/ksmbd: config file for /etc/init.d/ksmbd +# + +# Full path to config file. /etc/ksmbd/smb.conf is default if not set. +#KSMBD_CONF="/etc/ksmbd/smb.conf" diff --git a/net-fs/ksmbd-tools/files/initd b/net-fs/ksmbd-tools/files/initd new file mode 100644 index 000000000000..f65770ed44c6 --- /dev/null +++ b/net-fs/ksmbd-tools/files/initd @@ -0,0 +1,32 @@ +#!/sbin/openrc-run +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +KSMBD_CONF="${KSMBD_CONF:-/etc/ksmbd/smb.conf}" + +depend() { + need localmount + use net +} + +description="ksmbd userspace daemon" + +command="/sbin/ksmbd.mountd" +command_control="/sbin/ksmbd.control" +command_args="-s" + +required_files="${KSMBD_CONF}" + +start_pre() { + /sbin/modprobe ksmbd || return 1 +} + +stop() { + ebegin "Stopping ${RC_SVCNAME}" + "${command_control}" -s + eend $? +} + +stop_post() { + /sbin/modprobe -r -q ksmbd || return 0 +} |