~nova-coresec/nova/ppa-lucid

« back to all changes in this revision

Viewing changes to debian/nova-instancemonitor.init

  • Committer: Soren Hansen
  • Date: 2010-10-15 22:42:02 UTC
  • mfrom: (195.1.87 ubuntu-packaging)
  • Revision ID: soren.hansen@rackspace.com-20101015224202-0d9wpxxp463ox10z
MergeĀ ubuntuĀ branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
set -e
14
14
 
15
15
DAEMON=/usr/bin/nova-instancemonitor
16
 
DAEMON_ARGS="--flagfile=/etc/nova.conf"
 
16
DAEMON_ARGS="--flagfile=/etc/nova/nova-instancemonitor.conf"
17
17
PIDFILE=/var/run/nova/nova-instancemonitor.pid
18
18
 
19
 
ENABLED=false
 
19
ENABLED=true
20
20
 
21
21
if test -f /etc/default/nova-instancemonitor; then
22
22
  . /etc/default/nova-instancemonitor
36
36
case "$1" in
37
37
  start)
38
38
    test "$ENABLED" = "true" || exit 0
39
 
    log_daemon_msg "Starting nova compute" "nova-instancemonitor"
 
39
    log_daemon_msg "Starting nova instancemonitor" "nova-instancemonitor"
40
40
    cd /var/run
41
41
    if $DAEMON $DAEMON_ARGS start; then
42
42
      log_end_msg 0
46
46
    ;;
47
47
  stop)
48
48
    test "$ENABLED" = "true" || exit 0
49
 
    log_daemon_msg "Stopping nova compute" "nova-instancemonitor"
 
49
    log_daemon_msg "Stopping nova instancemonitor" "nova-instancemonitor"
50
50
    cd /var/run
51
51
    if $DAEMON $DAEMON_ARGS stop; then
52
52
      log_end_msg 0