Revision 5db34212 src/im_mad/remotes/common.d/collectd-client_control.sh

View differences:

src/im_mad/remotes/common.d/collectd-client_control.sh
86 86

  
87 87
case $ACTION in
88 88
start)
89
    if ! check_running; then
90
        start_client
91
        write_pid $!
89
    if check_running; then
90
        stop_client
91
        remove_pid_file
92 92
    fi
93 93

  
94
    start_client
95
    write_pid $!
96

  
94 97
    # This script returns the run_probes execution
95 98
    HYPERVISOR=$1
96 99
    shift

Also available in: Unified diff