View | Details | Raw Unified | Return to bug 15338
Collapse All | Expand All

(-)a/C4/SIP/SIPServer.pm (-1 / +1 lines)
Lines 1-4 Link Here
1
package C4::SIP::SIPServer;
1
package SIPServer;
2
2
3
use strict;
3
use strict;
4
use warnings;
4
use warnings;
(-)a/misc/bin/sip_run.sh (-7 / +4 lines)
Lines 24-34 for x in HOME PERL5LIB KOHA_CONF ; do Link Here
24
	fi;
24
	fi;
25
done;
25
done;
26
unset x;
26
unset x;
27
# you should hard code this if you have multiple directories
27
# get the bin directory from the location of this script
28
# in your PERL5LIB
28
BINDIR="$( cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)"
29
PERL_MODULE_DIR=$PERL5LIB
30
cd $PERL_MODULE_DIR/C4/SIP;
31
echo;
32
29
33
sipconfig=${1};
30
sipconfig=${1};
34
outfile=${2:-$HOME/sip.out};
31
outfile=${2:-$HOME/sip.out};
Lines 37-44 errfile=${3:-$HOME/sip.err}; Link Here
37
if [ $sipconfig ]; then
34
if [ $sipconfig ]; then
38
	echo "Running with config file located in $sipconfig" ;
35
	echo "Running with config file located in $sipconfig" ;
39
	echo "Calling (backgrounded):";
36
	echo "Calling (backgrounded):";
40
    echo "perl ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile";
37
    echo "perl ./SIPServer $sipconfig >>$outfile 2>>$errfile";
41
    perl ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile &
38
    $BINDIR/SIPServer $sipconfig >>$outfile 2>>$errfile &
42
39
43
else
40
else
44
	echo "Please specify a config file and try again."
41
	echo "Please specify a config file and try again."
(-)a/misc/bin/sip_shutdown.sh (-3 lines)
Lines 1-7 Link Here
1
#!/bin/bash
1
#!/bin/bash
2
2
3
. $HOME/.bash_profile
4
5
# this is brittle: the primary server must have the lowest PPID
3
# this is brittle: the primary server must have the lowest PPID
6
# this is brittle: ps behavior is very platform-specific, only tested on Debian Etch
4
# this is brittle: ps behavior is very platform-specific, only tested on Debian Etch
7
5
8
- 

Return to bug 15338