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

(-)a/debian/scripts/koha-sip (-5 / +12 lines)
Lines 156-167 restart_sip() Link Here
156
        echo $noLF `stop_sip ${name}`
156
        echo $noLF `stop_sip ${name}`
157
        echo $noLF `start_sip ${name}`
157
        echo $noLF `start_sip ${name}`
158
    else
158
    else
159
        if [ "$verbose" != "no" ]; then
159
        echo $noLF `start_sip ${name}`
160
            log_daemon_msg "Warning: SIP server not running for ${name}"
160
	if [ "$verbose" != "no" ]; then
161
            log_daemon_msg "Warning: SIP server not running for ${name}... trying to start"
161
            log_end_msg 0
162
            log_end_msg 0
162
        else
163
            return 0
164
        fi
163
        fi
164
	if is_sip_running ${name}; then
165
	    return 0
166
	else
167
            if [ "$verbose" != "no" ]; then
168
	        log_daemon_msg "Warning: SIP server not started, check your config"
169
                log_end_msg 0
170
	    fi
171
    	    return 1
172
	fi
165
    fi
173
    fi
166
}
174
}
167
175
168
- 

Return to bug 24991