#!/bin/sh
# SPDX-License-Identifier: MIT
# pidof for the package-based image (procps has no pidof)
r=1
for n in "$@"; do for p in $(pgrep -x "$n"); do printf '%s ' "$p"; r=0; done; done
[ $r = 0 ] && echo
exit $r
