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

(-)a/debian/scripts/koha-indexer (-1 / +1 lines)
Lines 134-140 restart_indexer() Link Here
134
            log_end_msg 1
134
            log_end_msg 1
135
        fi
135
        fi
136
    else
136
    else
137
        log_daemon_msg "Indexer not running for $name."
137
        echo "Indexer not running for $name."
138
        start_indexer $name
138
        start_indexer $name
139
    fi
139
    fi
140
}
140
}
(-)a/debian/scripts/koha-plack (-1 / +1 lines)
Lines 164-170 restart_plack() Link Here
164
    if is_plack_running ${instancename}; then
164
    if is_plack_running ${instancename}; then
165
        stop_plack $instancename && start_plack $instancename
165
        stop_plack $instancename && start_plack $instancename
166
    else
166
    else
167
        log_daemon_msg "Plack not running for ${instancename}."
167
        echo "Plack not running for ${instancename}."
168
        start_plack $instancename
168
        start_plack $instancename
169
    fi
169
    fi
170
}
170
}
(-)a/debian/scripts/koha-sip (-5 / +4 lines)
Lines 149-158 stop_sip() Link Here
149
restart_sip()
149
restart_sip()
150
{
150
{
151
    local name=$1
151
    local name=$1
152
    local noLF="-n"
153
    [ "$verbose" != "no" ] && noLF=""
152
154
153
    if is_sip_running ${name}; then
155
    if is_sip_running ${name}; then
154
        local noLF="-n"
155
        [ "$verbose" != "no" ] && noLF=""
156
        echo $noLF `stop_sip ${name}`
156
        echo $noLF `stop_sip ${name}`
157
157
158
        MAX_ITERATION=10
158
        MAX_ITERATION=10
Lines 167-178 restart_sip() Link Here
167
        echo $noLF `start_sip ${name}`
167
        echo $noLF `start_sip ${name}`
168
    else
168
    else
169
        if [ "$verbose" != "no" ]; then
169
        if [ "$verbose" != "no" ]; then
170
            log_daemon_msg "Warning: SIP server not running for ${name}."
170
            echo $noLF "Warning: SIP server not running for ${name}."
171
            start_sip ${name}
172
        else
171
        else
173
            start_sip ${name}
174
            return 0
172
            return 0
175
        fi
173
        fi
174
        start_sip ${name}
176
    fi
175
    fi
177
}
176
}
178
177
(-)a/debian/scripts/koha-worker (-1 / +1 lines)
Lines 144-150 restart_worker() Link Here
144
            log_end_msg 1
144
            log_end_msg 1
145
        fi
145
        fi
146
    else
146
    else
147
        log_daemon_msg "Worker not running for $name ($queue)."
147
        echo "Worker not running for $name ($queue)."
148
        start_worker $name $queue
148
        start_worker $name $queue
149
    fi
149
    fi
150
}
150
}
(-)a/debian/scripts/koha-z3950-responder (-1 / +1 lines)
Lines 167-173 restart_z3950() Link Here
167
            log_end_msg 1
167
            log_end_msg 1
168
        fi
168
        fi
169
    else
169
    else
170
        log_daemon_msg "Z39.50/SRU not running for ${instancename}."
170
        echo "Z39.50/SRU not running for ${instancename}."
171
        start_z3950 $instancename
171
        start_z3950 $instancename
172
    fi
172
    fi
173
}
173
}
(-)a/debian/scripts/koha-zebra (-7 / +5 lines)
Lines 138-157 stop_zebra() Link Here
138
restart_zebra()
138
restart_zebra()
139
{
139
{
140
    local name=$1
140
    local name=$1
141
    local noLF="-n"
142
    [ "$verbose" != "no" ] && noLF=""
141
143
142
    if is_zebra_running ${name}; then
144
    if is_zebra_running ${name}; then
143
        local noLF="-n"
144
        [ "$verbose" != "no" ] && noLF=""
145
        echo $noLF `stop_zebra ${name}`
145
        echo $noLF `stop_zebra ${name}`
146
        echo $noLF `start_zebra ${name}`
146
        echo $noLF `start_zebra ${name}`
147
    else
147
    else
148
        if [ "$verbose" != "no" ]; then
148
        if [ "$verbose" != "no" ]; then
149
            log_daemon_msg "Zebra not running for ${name}."
149
            echo $noLF "Zebra not running for ${name}."
150
            start_zebra ${name}
151
        else
150
        else
152
            start_zebra ${name}
151
            return 0
153
            return 1
154
        fi
152
        fi
153
        start_zebra ${name}
155
    fi
154
    fi
156
}
155
}
157
156
158
- 

Return to bug 30684