Opened 14 years ago

Closed 14 years ago

#729 closed enhancement (fixed)

./jobagent.sh should accept command `status`

Reported by: Jari Häkkinen Owned by: Nicklas Nordborg
Priority: major Milestone: BASE 2.5
Component: core Version: 2.4.0
Keywords: Cc:

Description

status should return if the agent is running or not. Needed for completness and compliance with other unix startup scripts. I am trying to write a startup script for automatic start up of the job agents after a reboot and other unexpected events.

Change History (4)

comment:1 Changed 14 years ago by Jari Häkkinen

Milestone: BASE 2.5

comment:2 Changed 14 years ago by Nicklas Nordborg

"compliance with other unix startup scripts"

Hmmm... what exactly does this mean? Is there some "standardized" response from startup scripts? Running / Stopped / more?

comment:3 Changed 14 years ago by Nicklas Nordborg

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

Ok, time is running out on this one. I'll add a 'status' command which returns Running, Paused or Stopped. These three are considered successful executions and all return with exit code 0. In case there is an unexpected error for 'status' or any other command the exit code will be 1.

comment:4 Changed 14 years ago by Nicklas Nordborg

Resolution: fixed
Status: assignedclosed

(In [3992]) Fixes #728: jobagent.sh should accept command status

Also made the jobagent log into it's own file (jobagent.log) instead of stdout

Note: See TracTickets for help on using tickets.