Lines 22-28
NAME="koha-common"
Link Here
|
22 |
SCRIPTNAME=/etc/init.d/$NAME |
22 |
SCRIPTNAME=/etc/init.d/$NAME |
23 |
|
23 |
|
24 |
# Exit if the package is not installed |
24 |
# Exit if the package is not installed |
25 |
[ -x /usr/sbin/koha-start-zebra ] || exit 0 |
25 |
[ -x /usr/sbin/koha-zebra ] || exit 0 |
26 |
|
26 |
|
27 |
# Read configuration variable file if it is present |
27 |
# Read configuration variable file if it is present |
28 |
if [ -r /etc/default/$NAME ]; then |
28 |
if [ -r /etc/default/$NAME ]; then |
Lines 55-61
do_start()
Link Here
|
55 |
{ |
55 |
{ |
56 |
# We insure all required directories exist, including disabled ones. |
56 |
# We insure all required directories exist, including disabled ones. |
57 |
koha-create-dirs $(koha-list) |
57 |
koha-create-dirs $(koha-list) |
58 |
koha-start-zebra $(koha-list --enabled) |
58 |
koha-zebra --start $(koha-list --enabled) |
59 |
koha-start-sip $(koha-list --enabled) |
59 |
koha-start-sip $(koha-list --enabled) |
60 |
koha-plack --start $(koha-list --enabled --plack) |
60 |
koha-plack --start $(koha-list --enabled --plack) |
61 |
|
61 |
|
Lines 70-76
do_start()
Link Here
|
70 |
do_stop() |
70 |
do_stop() |
71 |
{ |
71 |
{ |
72 |
# We stop everything, including disabled ones. |
72 |
# We stop everything, including disabled ones. |
73 |
koha-stop-zebra $(koha-list) || true |
73 |
koha-zebra --stop $(koha-list) || true |
74 |
koha-stop-sip $(koha-list) || true |
74 |
koha-stop-sip $(koha-list) || true |
75 |
koha-plack --stop --quiet $(koha-list --enabled --plack) |
75 |
koha-plack --stop --quiet $(koha-list --enabled --plack) |
76 |
|
76 |
|
Lines 83-89
do_stop()
Link Here
|
83 |
# Function that sends a SIGHUP to the daemon/service |
83 |
# Function that sends a SIGHUP to the daemon/service |
84 |
# |
84 |
# |
85 |
do_reload() { |
85 |
do_reload() { |
86 |
koha-restart-zebra $(koha-list --enabled) |
86 |
koha-zebra --restart $(koha-list --enabled) |
87 |
koha-stop-sip $(koha-list) || true |
87 |
koha-stop-sip $(koha-list) || true |
88 |
koha-start-sip $(koha-list --enabled) |
88 |
koha-start-sip $(koha-list --enabled) |
89 |
koha-plack --restart --quiet $(koha-list --enabled --plack) |
89 |
koha-plack --restart --quiet $(koha-list --enabled --plack) |