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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Mar 6 03:38:08 2004 UTC (15 years, 11 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
FILE REMOVED
we license under gpl2, not gpl2 or later

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 $EXE1 1>&2
27 killall $EXE2 1>&2
28 eend $? "Error stopping ${SERVICE}."
29 }
30
31 restart() {
32 stop
33 start
34 }
35
36 doservice ${@}

  ViewVC Help
Powered by ViewVC 1.1.20