File: //etc/rc.d/rc2.d/S90acronis_schedule
#!/bin/bash
#
# /etc/rc.d/init.d/acronis_trueimage_schedule
#
# Handle Acronis True Image startup/shutdown tasks
#
# chkconfig: 2345 90 10
# description: Start True Image startup/shutdown tasks
# $Id
ATILS_DIR=/usr/lib/Acronis
start() {
echo -n "Running Acronis True Image startup tasks..."
$ATILS_DIR/Schedule/schedwrapper -m startup
return $?
}
stop() {
echo -n "Running Acronis True Image shutdown tasks..."
$ATILS_DIR/Schedule/schedwrapper -m shutdown
return $?
}
case "$1" in
start)
start
;;
stop)
stop
;;
*)
echo "Usage: acronis_trueimage_schedule {start|stop}"
exit 1
;;
esac
exit $?