[Bug 284100] dns/knot3: rc script error

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 22 Jan 2025 15:18:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284100

--- Comment #12 from Vladimir Druzenko <vvd@FreeBSD.org> ---
(In reply to Tomáš Čiernik from comment #11)

. /etc/rc.subr

echo "0 =$0="
echo "_file =$_file="
echo "file =$file="

case "$0" in
/etc/rc*)
        # during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown),
        # so get the name of the script from $_file
        name="$_file"
        echo "rc"
        ;;
*/service)
        name="$file"
        echo "service"
        ;;
*)
        name="$0"
        echo "0"
        ;;
esac

echo "name =$name="

-- 
You are receiving this mail because:
You are the assignee for the bug.