Signiant Support

Why do job restarts behave differently on a soft reboot than on a hard reboot? Print


Question

The default behaviour of jobs is to restart when the machine recovers from a hard reboot, such as from an operating system crash or a power failure. However, if the Manager is soft booted, such as from the shutdown or reboot commands, the jobs are not automatically restarted.

Why do job restarts behave differently on a soft reboot than on a hard reboot?

Answer

The difference is that the soft reboot (ie, using the 'reboot' or 'shutdown' commands) causes the Manager shutdown script to run. This performs an orderly shutdown of the Manager, and gracefully terminates all running jobs. Since a shutdown of this nature is interactive and planned, it is assumed that the operator wishes to kill all running jobs.

Conversely, on a hard reboot (such as after an OS crash or power outage), the jobs are not gracefully shut down. When the Manager initializes, it can detect these jobs (as they are not in a normal state at startup) and will attempt to restart the jobs. Since the very nature of this kind of reboot is unplanned, it is assumed that the operator would like the jobs to restart.