~ubuntu-branches/ubuntu/oneiric/haproxy/oneiric-updates

« back to all changes in this revision

Viewing changes to examples/haproxy.init

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Cornet
  • Date: 2009-06-26 00:11:01 UTC
  • mfrom: (1.1.6 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090626001101-qo261ke2mjh3d8cn
Tags: 1.3.18-1
* New Upstream Version (Closes: #534583).
* Add contrib directory in docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
  start
72
72
}
73
73
 
 
74
reload() {
 
75
  /usr/sbin/$BASENAME -c -q -f /etc/$BASENAME/$BASENAME.cfg
 
76
  if [ $? -ne 0 ]; then
 
77
    echo "Errors found in configuration file, check it with '$BASENAME check'."
 
78
    return 1
 
79
  fi
 
80
  /usr/sbin/$BASENAME -D -f /etc/$BASENAME/$BASENAME.cfg -p /var/run/$BASENAME.pid -sf $(cat /var/run/$BASENAME.pid)
 
81
}
 
82
 
74
83
check() {
75
84
  /usr/sbin/$BASENAME -c -q -V -f /etc/$BASENAME/$BASENAME.cfg
76
85
}
95
104
    restart
96
105
    ;;
97
106
  reload)
98
 
    restart
 
107
    reload
99
108
    ;;
100
109
  condrestart)
101
110
    condrestart