HEX
Server: Apache
System: Linux iad1-shared-e1-26 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: ricpug (13815490)
PHP: 7.4.33
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