Rules Service Recovery

Previous Next

See Also

You can configure the Rules Service for automatic recovery on Windows XP and on Unix platforms:

On the Windows XP operating system, an automatic restart can be arranged through the Services Manager:

1. In the Microsoft Services Manager, open the properties of the Rules Service.
2. Click the Recovery tab page.
3. Define the required action on failure, for example: restart service.

On Unix platforms, the following sample script can be used to restart the Rules Service automatically:

   #!/bin/sh

   unset closing_time

 

   trap1()

   {

     closing_time=now

   }

 

   # catch signals

   trap trap1 1 2 3     6     9       12 13 14 15 16 17 22 28 29

 

   while [ -z "${closing_time}" ]; do

       echo "Starting RulesService $@"

       ./RulesService $@ &

       pid=$!

       wait ${pid}

   done

 

   echo "Closing down"

   echo "Stopping RulesService ${pid}"

   kill ${pid}

On Unix, the init process control program can be used to (re)start the Rules Service in the case of a reboot of Unix. See the Unix documentation for more information on the init process control program.