@@ -71,8 +71,7 @@ if test "$rpcbind" = yes
then
if test -x /usr/sbin/rpcbind
then
- service rpcbind status > /dev/null
- if [ $? != 0 ]; then
+ if ! start-stop-daemon --stop --test --quiet --exec /usr/sbin/rpcbind; then
echo -n "Starting rpcbind..."
start-stop-daemon --start --quiet --exec /usr/sbin/rpcbind
sleep 2
@@ -48,7 +48,6 @@ PACKAGE_WRITE_DEPS:append = " ${@bb.utils.contains('DISTRO_FEATURES','systemd','
PACKAGES =+ "${PN}-functions ${PN}-sushell"
RDEPENDS:${PN} = "initd-functions \
${@bb.utils.contains('DISTRO_FEATURES','selinux','${PN}-sushell','',d)} \
- init-system-helpers-service \
"
# Recommend pn-functions so that it will be a preferred default provider for initd-functions
RRECOMMENDS:${PN} = "${PN}-functions"