|
|
@@ -7,8 +7,10 @@
|
|
|
mico_enable="$openpkg_rc_def"
|
|
|
mico_micod="no"
|
|
|
mico_nsd="no"
|
|
|
- mico_nsd_args="-ORBGIOPVersion 1.2 -ORBIIOPVersion 1.2 -ORBIIOPAddr inet:`uname -n`:8914"
|
|
|
- mico_micod_args="-ORBGIOPVersion 1.2 -ORBIIOPVersion 1.2 -ORBIIOPAddr inet:`uname -n`:8912"
|
|
|
+ mico_ip_micod="127.0.0.1"
|
|
|
+ mico_ip_nsd="127.0.0.1"
|
|
|
+ mico_micod_args="-ORBGIOPVersion 1.2 -ORBIIOPVersion 1.2 -ORBIIOPAddr inet:${mico_ip_micod}:8912"
|
|
|
+ mico_nsd_args="-ORBGIOPVersion 1.2 -ORBIIOPVersion 1.2 -ORBIIOPAddr inet:${mico_ip_nsd}:8914"
|
|
|
|
|
|
%common
|
|
|
mico_micod_pidfile="@l_prefix@/var/mico/micod.pid"
|
|
|
@@ -41,6 +43,7 @@
|
|
|
|
|
|
%start -u @l_rusr@
|
|
|
rcService mico enable yes || exit 0
|
|
|
+ rcService mico active yes && exit 0
|
|
|
# run the object adapter daemon for dynamic object activation
|
|
|
if rcVarIsYes mico_micod; then
|
|
|
@l_prefix@/bin/micod ${mico_micod_args} &
|
|
|
@@ -54,12 +57,14 @@
|
|
|
|
|
|
%stop -u @l_rusr@
|
|
|
rcService mico enable yes || exit 0
|
|
|
+ rcService mico active no && exit 0
|
|
|
mico_signal TERM
|
|
|
rm -f $mcio_micod_pidfile 2>/dev/null || true
|
|
|
rm -f $mcio_nsd_pidfile 2>/dev/null || true
|
|
|
|
|
|
%restart -u @l_rusr@
|
|
|
rcService mico enable yes || exit 0
|
|
|
+ rcService mico active no && exit 0
|
|
|
rc mico stop
|
|
|
sleep 2
|
|
|
rc mico start
|