• R/O
  • HTTP
  • SSH
  • HTTPS

ppp-resource-agents: Commit


Commit MetaInfo

Revision28bd2776477d24c9aa7848d98a77465291afac58 (tree)
Time2017-08-29 19:05:00
AuthorTatsuki Sugiura <sugi@nemu...>
CommiterTatsuki Sugiura

Log Message

First version.

Change Summary

Incremental Difference

--- a/PPPConnection
+++ b/PPPConnection
@@ -201,10 +201,10 @@ ppp_stop() {
201201 ocf_log err "ppp connection is still active with isp '${ISP}', giving up to stop!"
202202 return $OCF_ERR_GENERIC
203203 elif [ "$tries" -gt 8 ]; then
204- ocf_log warn "pppd is still running with isp '${ISP}'. Trying to send KILL signal..."
204+ ocf_log warn "pppd still running with isp '${ISP}'. Trying to send KILL signal..."
205205 kill -KILL `ps -ewwwo pid,args | $EGREP "[p]ppd call ${ISP}\$" | $AWK '{print $1}'`
206206 elif [ "$tries" -gt 5 ]; then
207- ocf_log warn "pppd is still running with isp '${ISP}'. Trying to send TERM signal..."
207+ ocf_log warn "pppd still running with isp '${ISP}'. Trying to send TERM signal..."
208208 kill -TERM `ps -ewwwo pid,args | $EGREP "[p]ppd call ${ISP}\$" | $AWK '{print $1}'`
209209 fi
210210 sleep $OCF_RESKEY_poff_wait_sec
@@ -279,9 +279,11 @@ ppp_validate
279279 case $__OCF_ACTION in
280280 start)
281281 ppp_start
282+ exit $?
282283 ;;
283284 stop)
284285 ppp_stop
286+ exit $?
285287 ;;
286288 status)
287289 ip_status=`ppp_echo_status`
@@ -298,6 +300,7 @@ case $__OCF_ACTION in
298300 exit $?
299301 ;;
300302 validate-all)
303+ exit $OCF_SUCCESS
301304 ;;
302305 *)
303306 ppp_usage
Show on old repository browser