Bugzilla – Attachment 6998 Details for
Bug 7238
move SIPconfig.xml, sip_run and sip_shutdown outside from C4 (NOT FOR 3.6)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7238 Followup - fix sip_run to require path to SIPconfig.xml
Bug-7238-Followup---fix-siprun-to-require-path-to-.patch (text/plain), 1.44 KB, created by
Liz Rea
on 2012-01-01 03:44:33 UTC
(
hide
)
Description:
Bug 7238 Followup - fix sip_run to require path to SIPconfig.xml
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2012-01-01 03:44:33 UTC
Size:
1.44 KB
patch
obsolete
>From b7afe6ec81169218bd6df3eb982e89fb3ba239b7 Mon Sep 17 00:00:00 2001 >From: Liz Rea <wizzyrea@gmail.com> >Date: Sat, 31 Dec 2011 21:41:03 -0600 >Subject: [PATCH] Bug 7238 Followup - fix sip_run to require path to > SIPconfig.xml >Content-Type: text/plain; charset="utf-8" > >This requires Chris C's patch to move the scripts to the new location outside of C4. > >To test: >run sip_run.sh with no arguments - it should fail with a message to add the path and try again. > >Run sip_run.sh with a path to a valid SIPconfig.xml - it should start and run. >--- > misc/bin/sip_run.sh | 15 ++++++++++----- > 1 files changed, 10 insertions(+), 5 deletions(-) > >diff --git a/misc/bin/sip_run.sh b/misc/bin/sip_run.sh >index 587e323..b1bc8d9 100755 >--- a/misc/bin/sip_run.sh >+++ b/misc/bin/sip_run.sh >@@ -26,12 +26,17 @@ done; > unset x; > cd $PERL5LIB/C4/SIP; > echo; >-echo Running from `pwd`; > >-sipconfig=${1:-`pwd`/SIPconfig.xml}; >+sipconfig=${1}; > outfile=${2:-$HOME/sip.out}; > errfile=${3:-$HOME/sip.err}; > >-echo "Calling (backgrounded):"; >-echo "perl -I./ ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile"; >-perl -I./ ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile & >+if [ $sipconfig ]; then >+ echo "Running with config file located in $sipconfig" ; >+ echo "Calling (backgrounded):"; >+ echo "perl -I./ ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile"; >+ perl -I./ ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile & >+ >+else >+ echo "Please specify a config file and try again." >+fi >-- >1.7.5.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7238
:
6323
|
6998
|
6999
|
7549
|
7551
|
7602