Toolserver:Jobserver


 * Note: The functionality described on this page does not yet exist.

The job server is a centralised system that allows long-running jobs (i.e. tools) to be started easily, and restart on reboot, or if they crash.

Simple usage
Start a new job: $ job add $HOME/myjob.pl $ job list ID STATE    CMD 1  running  /home/jsmith/myjob.pl

Stop a running job: $ job disable 1 $ job list ID STATE    CMD 1  disabled /home/jsmith/myjob.pl

Delete a job: $ job delete 1 $ job list No jobs defined.

By default, the job server will start the job on reboot, and restart it on crash. If it exits, it will not be restarted.

More complex examples
Specify the a job should be restarted if it exits:

$ job show 1 Id: 1 State: running Command: /home/jsmith/myjob.pl Reboot action: restart Exit action: disable Crash action: restart $ job set exit=restart 1 $ job show 1 Id: 1 State: running Command: /home/jsmith/myjob.pl Reboot action: restart Exit action: restart Crash action: restart

Or specify this when creating the job:

$ job add -o crash=restart $HOME/myjob.pl