blob: 7f3d0357e7d7264ba5e6c47b43d78ca14373f6dd (
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
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/omniORB/files/omniORB.rc6,v 1.7 2004/07/15 00:07:09 agriffis 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 &
exec /usr/bin/notifd -c /etc/omniorb/channel.cfg 1>&2 &
eend $? "Error starting omniORB."
}
stop() {
ebegin "Stopping omniORB"
killall /usr/bin/omniNames 1>&2
killall /usr/bin/notifd 1>&2
eend $? "Error stopping omniORB."
}
|