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

(-)a/debian/koha-common.init (-4 / +4 lines)
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)
(-)a/debian/koha-common.logrotate (-2 / +2 lines)
Lines 9-20 Link Here
9
    notifempty
9
    notifempty
10
    sharedscripts
10
    sharedscripts
11
    prerotate
11
    prerotate
12
        /usr/sbin/koha-stop-zebra $(koha-list --enabled) > /dev/null
12
        /usr/sbin/koha-zebra --stop $(koha-list --enabled) > /dev/null
13
        /usr/sbin/koha-plack --stop --quiet $(koha-list --enabled --plack) > /dev/null
13
        /usr/sbin/koha-plack --stop --quiet $(koha-list --enabled --plack) > /dev/null
14
    endscript
14
    endscript
15
    postrotate
15
    postrotate
16
        /etc/init.d/apache2 reload > /dev/null
16
        /etc/init.d/apache2 reload > /dev/null
17
        /usr/sbin/koha-plack --start --quiet $(koha-list --enabled --plack) > /dev/null
17
        /usr/sbin/koha-plack --start --quiet $(koha-list --enabled --plack) > /dev/null
18
        /usr/sbin/koha-start-zebra $(koha-list --enabled) > /dev/null
18
        /usr/sbin/koha-zebra --start $(koha-list --enabled) > /dev/null
19
    endscript
19
    endscript
20
}
20
}
(-)a/debian/scripts/koha-create (-1 / +1 lines)
Lines 819-825 then Link Here
819
    service apache2 restart
819
    service apache2 restart
820
820
821
    # Start Zebra.
821
    # Start Zebra.
822
    koha-start-zebra "$name"
822
    koha-zebra --start "$name"
823
823
824
    if [ "$USE_INDEXER_DAEMON" = "yes" ]; then
824
    if [ "$USE_INDEXER_DAEMON" = "yes" ]; then
825
        # Start Indexer daemon
825
        # Start Indexer daemon
(-)a/debian/scripts/koha-disable (-1 / +1 lines)
Lines 67-73 do Link Here
67
                koha-stop-sip $name
67
                koha-stop-sip $name
68
            fi
68
            fi
69
            if is_zebra_running $name; then
69
            if is_zebra_running $name; then
70
                koha-stop-zebra $name
70
                koha-zebra --stop $name
71
            fi
71
            fi
72
            if is_indexer_running $name; then
72
            if is_indexer_running $name; then
73
                koha-indexer --stop $name
73
                koha-indexer --stop $name
(-)a/debian/scripts/koha-remove (-2 / +1 lines)
Lines 78-84 eof Link Here
78
78
79
    # Stop the Zebra server if needed
79
    # Stop the Zebra server if needed
80
    if is_zebra_running $name; then
80
    if is_zebra_running $name; then
81
        koha-stop-zebra $name || /bin/true
81
        koha-zebra --stop $name || /bin/true
82
    fi
82
    fi
83
    # Stop the indexer daemon if needed
83
    # Stop the indexer daemon if needed
84
    if is_indexer_running $name; then
84
    if is_indexer_running $name; then
85
- 

Return to bug 20234