/[gentoo-x86]/net-misc/omniORB/files/omniORB
Gentoo

Contents of /net-misc/omniORB/files/omniORB

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Sep 13 16:57:58 2001 UTC (18 years, 5 months ago) by darks
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +0 -0 lines
FILE REMOVED
added rc6 init scripts

1 #!/bin/sh
2 #RCUPDATE:3 4:99:This line is required for script management
3
4 . /etc/rc.d/config/functions
5
6 SERVICE=omniORB
7 EXE1="/usr/bin/omniNames"
8 EXE2="/usr/bin/notifd"
9 opts="start stop restart"
10
11 start() {
12 if [ ! -d "/var/log/omniORB" ] ; then
13 install -d /var/log/omniORB
14 fi
15 if [ "/var/log/omniORB/omninames*" ] ; then
16 rm -f /var/log/omniORB/omninames*
17 fi
18 ebegin "Starting ${SERVICE}"
19 exec $EXE1 -start 2809 -logdir /var/log/omniORB -errlog /var/log/omniORB/omniORB.errors 1>&2 &
20 exec $EXE2 -c /etc/omniorb/channel.cfg 1>&2 &
21 eend $? "Error starting ${SERVICE}."
22 }
23
24 stop() {
25 ebegin "Stopping ${SERVICE}"
26 killall $EXE 1>&2
27 eend $? "Error stopping ${SERVICE}."
28 }
29
30 restart() {
31 stop
32 start
33 }
34
35 doservice ${@}

  ViewVC Help
Powered by ViewVC 1.1.20