PHP 8.5.2
Preview: K01iscsid Size: 1.48 KB
//etc/rcS.d/K01iscsid

#!/bin/sh
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
    set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
### BEGIN INIT INFO
# Provides:          iscsid
# Required-Start:    $network $local_fs
# Required-Stop:     $network $local_fs sendsigs
# Default-Start:     S
# Default-Stop:      0 1 6
# Short-Description: iSCSI initiator daemon (iscsid)
# Description:       The iSCSI initiator daemon takes care of
#                    monitoring iSCSI connections to targets. It is
#                    also the daemon providing the interface for the
#                    iscisadm tool to talk to when administering iSCSI
#                    connections.
### END INIT INFO

# Author: Christian Seiler <christian@iwakd.de>

DESC="iSCSI initiator daemon"
DAEMON=/usr/sbin/iscsid
PIDFILE=/run/iscsid.pid
OMITDIR=/run/sendsigs.omit.d

do_start_prepare() {
	if ! /usr/lib/open-iscsi/startup-checks.sh ; then
		exit 1
	fi
}

do_start_cleanup() {
	ln -sf $PIDFILE $OMITDIR
}

do_stop_override() {
	# Don't stop iscsid if we're on initramfs or we had some
	# excluded sessions. We could actually stop it, it's not
	# required for the kernel to continue working with active
	# sessions, but it also doesn't hurt to leave it running.
	if [ -f /etc/iscsi/iscsi.initramfs ] ||
		( [ -f /run/open-iscsi/shutdown-keep-sessions ] && [ -n "$(cat /run/open-iscsi/shutdown-keep-sessions)" ] )
	then
		return
	fi
	do_stop "$@"
}

Directory Contents

Dirs: 0 × Files: 12

Name Size Perms Modified Actions
1.48 KB lrwxr-xr-x 2025-02-11 08:52:16
Edit Download
2.41 KB lrwxr-xr-x 2025-02-11 08:52:16
Edit Download
3.65 KB lrwxr-xr-x 2025-08-15 12:16:02
Edit Download
937 B lrwxr-xr-x 2024-06-05 13:46:49
Edit Download
896 B lrwxr-xr-x 2024-06-05 13:46:49
Edit Download
1.45 KB lrwxr-xr-x 2024-02-26 12:58:31
Edit Download
2.00 KB lrwxr-xr-x 2024-04-18 10:06:53
Edit Download
760 B lrwxr-xr-x 2024-03-21 13:42:02
Edit Download
959 B lrwxr-xr-x 2024-03-24 15:35:54
Edit Download
1.19 KB lrwxr-xr-x 2021-02-18 08:51:15
Edit Download
2.04 KB lrwxr-xr-x 2024-02-11 13:20:32
Edit Download
2.70 KB lrwxr-xr-x 2021-10-19 09:04:11
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).