mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
dns/knot-resolver: Fix service status
Add status() function to rc script. PR: 266320 Reported by: yonas.yanfa@gmail.com Approved by: freebsd@dns.company (maintainer, timeout > 1 month)
This commit is contained in:
parent
91ef273ce6
commit
e2e231d0b5
1 changed files with 10 additions and 0 deletions
|
@ -62,4 +62,14 @@ kresd_stop() {
|
|||
fi
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
|
|
Loading…
Add table
Reference in a new issue