summaryrefslogtreecommitdiff
path: root/net/omniORB/files/omninames.sh
blob: fc64adc7988c0a6f3b864639dcbfcfebdb134688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: omninames.sh,v 1.2 2011/04/21 16:34:18 drochner Exp $
#
# omniORB NameService rc.d control script
#
# PROVIDE: omninames
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# You will need to set some variables in /etc/rc.conf to start omniNames:
#
# omniNames=YES
#
# The following variables are optional:
#
#	omniNames_flags="-start 423"	# Listen on a different port
#
# "omniNames_flags" contains options for the omniNames service.  See
# omniNames(1) for possible options.

$_rc_subr_loaded . /etc/rc.subr

name="omniNames"
rcvar=$name
command="@PREFIX@/bin/${name}"
logdir="/var/db"
errlogfile="/var/log/${name}.log"
command_args="-start -always -logdir ${logdir} -errlog ${errlogfile} &"

load_rc_config $name
run_rc_command "$1"