#!/sbin/runscript
# $Id$

pid_file="/onapp/autoscale/pidfile"

start() {
        ebegin "Starting Autoscale agent"
        start-stop-daemon --start --pidfile ${pid_file} \
                --user autoscale --group autoscale --exec /onapp/autoscale/autoscale_agentd -- -c /onapp/autoscale/autoscale_agentd.conf
        eend $?
}

stop() {
        ebegin "Stopping Autoscale agent"
        start-stop-daemon  --stop --pidfile ${pid_file}
        eend $?
}