#! /bin/sh
# Generated by ../utrans from:
#  981477a148e26a4b3e312b2f23ceca24095ec285079b2a9c3277473c1ee4318a  ./input/rpcbind.socket
#  342bd8ea5b9e3053fa924833a3d0b3514851998a93652c3da12ea824bbf6cd7d  ./input/rpcbind.service

# kFreeBSD does not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
   set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
### BEGIN INIT INFO
# Provides: rpcbind
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Should-Start: systemd-tmpfiles-setup
# Should-Stop: systemd-tmpfiles-setup
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: RPC bind portmap service
### END INIT INFO
DESC="RPC bind portmap service"
NAME="rpcbind"
COMMAND_NAME="none"
DAEMON="none"
set -a
OPTIONS='-w'
[ -r /etc/rpcbind.conf ] && . /dev/stdin <<EOF
$(sed -z 's#[[:space:]]*\\\n#\\#g' /etc/rpcbind.conf | grep '^[[:space:]]*[^#;].\+=')
EOF
[ -r /etc/default/rpcbind ] && . /dev/stdin <<EOF
$(sed -z 's#[[:space:]]*\\\n#\\#g' /etc/default/rpcbind | grep '^[[:space:]]*[^#;].\+=')
EOF
set +a
DAEMON_ARGS="--unix::/run/rpcbind.sock --unix::0.0.0.0:111 --unix::[::]:111 --unix-dgram::0.0.0.0:111 --unix-dgram::[::]:111 -- /sbin/rpcbind -f $OPTIONS"
PIDFILE="/run/rpcbind.pid"
START_ARGS="--background --make-pidfile --startas /usr/bin/socket-activate"
