HEX
Server: Apache
System: Linux vps37023 6.8.0-83-generic #83~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Sep 9 18:19:47 UTC 2 x86_64
User: alternativsm (5771646)
PHP: 8.1.32
Disabled: NONE
Upload Files
File: //lib/runit/run_sysv_scripts
#!/bin/sh -u
# Deliberately NO `set -e'. See #923957.
initdir="${1}"
set +u
if [ x = x$2 ]; then
	rcommand=start
	rX=S
else
	rcommand=stop
	rX=K
fi
set -u
for script in "$initdir/$rX"* ; do
	path=$(realpath "$script")
	name=$(basename "$path")
	# Special case for wicd. Runscript is called "wicd-daemon",
	# to match binary package name.
	[ -d "/etc/sv/$name" ] && continue
	[ -d "/etc/sv/$name-daemon" ] && continue
	"$script" "$rcommand"
done