#!/sbin/openrc-run

command=/usr/sbin/mdrd
command_args="-c /etc/certes/mdrd.conf"
pidfile=/run/mdrd.pid
directory=/var/run/mdrd

depend()
{
	use net
}

start_pre()
{
	install -d -o certesmdrd -g certes -m 0770 $directory
}

status()
{
	$command $command_args stat >/dev/null 2>&1
}

stop()
{
	$command $command_args shutdown || true
}
