HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/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