File: upstart

package info (click to toggle)
lbcd 3.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,696 kB
  • ctags: 1,034
  • sloc: ansic: 10,747; sh: 1,815; perl: 482; makefile: 159
file content (26 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# upstart configuration for lbcd.  -*- upstart -*-

description "Responder for load balancing"

start on runlevel [2345]
stop on runlevel [!2345]

respawn
expect stop
setuid lbcd
setgid lbcd

pre-start script
    test -x /usr/sbin/lbcd || { stop; exit 0; }
end script

# To change the default lbcd service, specify a command to run for the
# weight and interval, or do round-robin (-R), add the flags to DAEMON_OPTS
# in /etc/default/lbcd.  This will ensure consistent behavior across all
# init systems.
script
    if [ -f /etc/default/lbcd ] ; then
        . /etc/default/lbcd
    fi
    exec /usr/sbin/lbcd -f -l -Z $DAEMON_OPTS
end script