summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-fs/ksmbd-tools/files/ksmbd.initd')
-rw-r--r--net-fs/ksmbd-tools/files/ksmbd.initd41
1 files changed, 0 insertions, 41 deletions
diff --git a/net-fs/ksmbd-tools/files/ksmbd.initd b/net-fs/ksmbd-tools/files/ksmbd.initd
deleted file mode 100644
index 86feb90b8da1..000000000000
--- a/net-fs/ksmbd-tools/files/ksmbd.initd
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2021 Gentoo Authors
-# 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
- use net
-}
-
-description="ksmbd userspace daemon"
-
-command="/sbin/ksmbd.mountd"
-command_control="/sbin/ksmbd.control"
-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 -q ksmbd || return 0
-}
-
-stop() {
- ebegin "Stopping ${RC_SVCNAME}"
- "${command_control}" --shutdown
- eend $?
-}
-
-stop_post() {
- /sbin/modprobe -r -q ksmbd || return 0
-}