use master branch again for osrf/eg install
[sitka/sitka-tools.git] / deployment / restart-osrf.sh
1 #!/bin/bash
2
3 BASEDIR="/srv/openils"
4 BINDIR="${BASEDIR}/bin"
5
6 BRICK_CTL="/home/opensrf/brick_ctl.sh"
7
8 OSRFLG="/srv/openils/var/log/osrfsys.log"
9
10 RestartBrick()
11 {
12   /etc/init.d/apache2 stop
13   su -l opensrf -c ${BRICK_CTL} -a restart_all
14   /etc/init.d/apache2 start
15   return 1
16 }
17
18 RestartOsrf()
19 {
20   /etc/init.d/apache2 stop
21   su -l opensrf -c ${BINDIR}/osrf_ctl.sh -l -a restart_all
22   /etc/init.d/apache2 start
23   return 1
24 }
25
26