HEX
Server: Apache
System: Linux pdx1-shared-a1-29 6.18.39-grsec-noble+ #4 SMP Thu Jul 23 07:53:29 UTC 2026 x86_64
User: dh_bj99yp (22285841)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: //lib/runit/finish-exec
#!/bin/sh
set -e

NAME=${PWD##*/}

case $1 in
(-1)
	echo "invoke-run: ERROR $1 in $NAME: runscript didn't exit normally"
	# no need to sv d service here, runsv will stop trying after the first attempt
	;;

(161)
	echo "invoke-run: WARNING for $NAME: disabled by local settings"
	sv d $NAME
	;;

(162)
	echo "invoke-run: ERROR $1 in $NAME: configtest or early setup failed"
	sv d $NAME
	;;

(170)
	echo "invoke-run: ERROR $1 in $NAME: a runtime hard dependecy is missing"
	sv d $NAME
	;;
esac

if [ -e /etc/runit/verbose ]; then
	echo "invoke-run: $NAME stopped"
fi
if [ -e /etc/runit/debug ] ; then
	echo "invoke-run: $NAME : run exit code is $1"
fi