[Bug 266320] dns/knot-resolver: service status not working

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 09 Sep 2022 14:28:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266320

            Bug ID: 266320
           Summary: dns/knot-resolver: service status not working
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: yonas.yanfa@gmail.com

I'm not sure if the child pid or the daemon pid should be checked, but maybe
something like this could be added to /usr/local/etc/rc.d/kresd:

kresd_status() {
    if [ -e "${pidfile}" ]; then
        echo "${name} is running on pid $(cat $pidfile)."
        return 1
    else
        echo "${name} is not running."
        return 0
    fi
}

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