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

(-)a/etc/SIPconfig.xml (-1 / +8 lines)
Lines 5-10 Link Here
5
<!--
5
<!--
6
  Set Net::Server::PreFork runtime parameters
6
  Set Net::Server::PreFork runtime parameters
7
  syslog_ident will identify SIP2 Koha server entries in syslog
7
  syslog_ident will identify SIP2 Koha server entries in syslog
8
  See documentation for Net::Server
9
  user and group select what user the service should run as
10
  if started as root (e.g. in server startup ) the server will switch to
11
  this user after binding to the socket it is listening on
8
  For OpenSolaris, add: syslog_logsock=stream
12
  For OpenSolaris, add: syslog_logsock=stream
9
-->
13
-->
10
  <server-params
14
  <server-params
Lines 13-18 Link Here
13
    log_file='Sys::Syslog'
17
    log_file='Sys::Syslog'
14
    syslog_ident='koha_sip'
18
    syslog_ident='koha_sip'
15
    syslog_facility='local6'
19
    syslog_facility='local6'
20
    setsid="1"
21
    user='koha'
22
    group='koha'
23
    pid_file='/var/run/sipserver.pid'
16
  />
24
  />
17
25
18
  <listeners>
26
  <listeners>
Lines 121-124 in our case "ILS". Link Here
121
      <AllFinesNeedOverride>0</AllFinesNeedOverride>
129
      <AllFinesNeedOverride>0</AllFinesNeedOverride>
122
</syspref_overrides>
130
</syspref_overrides>
123
131
124
</acsconfig>
(-)a/misc/bin/sip_shutdown.sh (-15 / +5 lines)
Lines 1-19 Link Here
1
#!/bin/bash
1
#!/bin/bash
2
2
3
. $HOME/.bash_profile
3
#Terminates the session leader Sipserver which should terminate the children
4
# The pidfile name is specified as a server parameter in the configuration
5
# file
4
6
5
# this is brittle: the primary server must have the lowest PPID
7
PID_FILE=/var/run/sipserver.pid
6
# this is brittle: ps behavior is very platform-specific, only tested on Debian Etch
7
8
8
target="SIPServer";
9
kill `cat $PID_FILE`
9
PROCPID=$(ps x -o pid,ppid,args --sort ppid | grep "$target" | grep -v grep | head -1 | awk '{print $1}');
10
10
11
if [ ! $PROCPID ] ; then
12
    echo "No processes found for $target";
13
    exit;
14
fi
15
16
echo "SIP Processes for this user ($USER):";
17
ps x -o pid,ppid,args --sort ppid | grep "$target" | grep -v grep ;
18
echo "Killing process #$PROCPID";
19
kill $PROCPID;
20
- 

Return to bug 12169