blob: 775e26fa99a720f4e7f6fb6c2d0d392cac964b63 (
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
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/omniORB/files/omniORB-4.0.0,v 1.3 2004/03/06 03:38:08 vapier Exp $
depend() {
need net
}
start() {
if [ ! -d "/var/log/omniORB" ] ; then
install -d /var/log/omniORB
fi
if [ "/var/log/omniORB/omninames*" ] ; then
rm -f /var/log/omniORB/omninames*
fi
ebegin "Starting omniORB"
exec /usr/bin/omniNames -start 2809 -logdir /var/log/omniORB \
-errlog /var/log/omniORB/omniORB.errors 1>&2 &
eend $? "Error starting omniORB."
}
stop() {
ebegin "Stopping omniORB"
killall omniNames 1>&2
eend $? "Error stopping omniORB."
}
|