#!/usr/bin/env /lib/runit/invoke-run
set -e

NAME="rpcbind"
DAEMON=/sbin/rpcbind

# Exit service if DAEMON is not installed
if [ ! -x $DAEMON ]; then
	exit 161
fi

# Load defaults
if [ -r /etc/default/rpcbind ]; then
    . /etc/default/rpcbind
elif [ -r /etc/rpcbind.conf ]; then
    . /etc/rpcbind.conf
fi

exec 2>&1

exec $DAEMON -f ${OPTIONS}
