#!/bin/bash

# chkconfig: 2345 61 39
# description: anacron executes commands at intervals specified in days.

# source function library
. /etc/rc.d/init.d/functions

case "$1" in
  start)
	echo "Running Anacron ..."
	/usr/sbin/anacron -s
	;;
  stop)
	echo "Stopping Anacron ..."
	/usr/bin/killall -q -USR1 anacron
	;;
  restart)
	$0 stop
	$0 start
	;;
  status)
	status anacron
	;;
  *)
	echo "Usage: anacron {start|stop|status|restart}"
	exit 1
esac

exit 0

