#! /bin/sh
# ex: set tabstop=4 expandtab shiftwidth=4:
#
# Copyright (c) Likewise Corporation 2006
# Author: Gerald Carter <jerry@likewise.com>
#
###
# chkconfig: 35 20 80
# description: Start and Stop the Likewise DCE RPC Daemon
###
#

PROG_DESC="Likewise DCE/RPC Portmapper Service"
PROG_BIN=/opt/likewise/sbin/dcerpcd
PROG_ERR=/var/run/likewise-rpcd.err
SCRIPTNAME="dcerpcd"
STARTHOOK="setup_endpoint"
POSTSTARTHOOK="wait_ready"
PIDFILE="/var/run/dcerpcd.pid"

setup_endpoint()
{
    mkdir -p "/var/rpc"
    rm -f "/var/rpc/epmapper"
}

wait_ready()
{
    sleep 1
}

. /opt/likewise/bin/init-base.sh
