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

(-)a/debian/scripts/koha-restart-zebra (-12 / +7 lines)
Lines 95-115 EOF Link Here
95
for name in "$@"
95
for name in "$@"
96
do
96
do
97
    if is_instance $name ; then
97
    if is_instance $name ; then
98
        if is_enabled $name ; then
98
        if ! is_zebra_running $name; then
99
            warn "Zebra does not appear to have been running for instance $name."
99
100
100
            if ! is_zebra_running $name; then
101
            if ! start_zebra_instance $name ; then
101
                warn "Zebra does not appear to have been running for instance $name."
102
                warn "Something went wrong starting Zebra for $name."
102
103
                if ! start_zebra_instance $name ; then
104
                    warn "Something went wrong starting Zebra for $name."
105
                fi
106
            else
107
                if ! restart_zebra_instance $name; then
108
                  warn "Something went wrong restarting Zebra for $name."
109
                fi
110
            fi
103
            fi
111
        else
104
        else
112
            warn "Instance $name disabled. No action taken."
105
            if ! restart_zebra_instance $name; then
106
              warn "Something went wrong restarting Zebra for $name."
107
            fi
113
        fi
108
        fi
114
    else
109
    else
115
        warn "Unknown instance $name."
110
        warn "Unknown instance $name."
(-)a/debian/scripts/koha-start-zebra (-9 / +4 lines)
Lines 73-88 EOF Link Here
73
for name in "$@"
73
for name in "$@"
74
do
74
do
75
    if is_instance $name ; then
75
    if is_instance $name ; then
76
        if is_enabled $name ; then
76
        if ! is_zebra_running $name; then
77
            if ! is_zebra_running $name; then
77
            if ! start_zebra_instance $name; then
78
                if ! start_zebra_instance $name; then
78
                warn "Something went wrong starting Zebra for $name."
79
                    warn "Something went wrong starting Zebra for $name."
80
                fi
81
            else
82
                warn "Zebra already running for instance $name."
83
            fi
79
            fi
84
        else
80
        else
85
            warn "Instance $name disabled. No action taken."
81
            warn "Zebra already running for instance $name."
86
        fi
82
        fi
87
    else
83
    else
88
        warn "Unknown instance $name."
84
        warn "Unknown instance $name."
89
- 

Return to bug 13784