Changeset 16453 for trunk/Ohana/src/opihi/pantasks/init_server.c
- Timestamp:
- Feb 13, 2008, 3:30:31 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pantasks/init_server.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/init_server.c
r13541 r16453 2 2 3 3 int controller PROTO((int, char **)); 4 int task PROTO((int, char **));5 int task_host PROTO((int, char **));6 int task_nmax PROTO((int, char **));4 int task PROTO((int, char **)); 5 int task_host PROTO((int, char **)); 6 int task_nmax PROTO((int, char **)); 7 7 int task_npending PROTO((int, char **)); 8 int task_active PROTO((int, char **));9 int task_trange PROTO((int, char **));10 int task_macros PROTO((int, char **));8 int task_active PROTO((int, char **)); 9 int task_trange PROTO((int, char **)); 10 int task_macros PROTO((int, char **)); 11 11 int task_command PROTO((int, char **)); 12 12 int task_options PROTO((int, char **)); … … 26 26 27 27 static Command cmds[] = { 28 { "active", task_active,"set the active state of a task"},29 { "command", task_command,"define executed command for a task"},30 { "controller", controller,"controller commands"},31 { "delete", delete_job,"delete job"},32 { "host", task_host,"define host machine for a task"},33 { "ipptool2book", ipptool2book, "convert queue with ipptool output to book"},34 { "kill", kill_job,"kill job"},35 { "nmax", task_nmax,"define maximum number of jobs for a task"},36 { "options", task_options, "define optional variables associated with the job task"},37 { "npending", task_npending, "define maximum number of outstanding jobs for a task"},38 { "periods", task_periods,"define time scales for a task"},39 { "pulse", pulse,"set the scheduler update period"},40 { "flush", flush_jobs, "flush all jobs from the queue"},41 { "server", server,"server-specific commands"},42 { "showtask", showtask,"list a task"},43 { "status", status_server, "get system status"},44 { "stderr", task_stderr,"define a file for the job stderr dump"},45 { "stdout", task_stdout,"define a file for the job stdout dump"},46 { "task", task,"define a schedulable task"},47 { "task.exec", task_macros,"define pre-exec macro for a task"},48 { "task.exit", task_macros,"define exit macros for a task"},49 { "trange", task_trange,"define valid/invalid time periods for a task"},50 { "verbose", verbose,"set/toggle verbose mode"},51 { "version", version,"show version information"},28 {1, "active", task_active, "set the active state of a task"}, 29 {1, "command", task_command, "define executed command for a task"}, 30 {1, "controller", controller, "controller commands"}, 31 {1, "delete", delete_job, "delete job"}, 32 {1, "host", task_host, "define host machine for a task"}, 33 {1, "ipptool2book", ipptool2book, "convert queue with ipptool output to book"}, 34 {1, "kill", kill_job, "kill job"}, 35 {1, "nmax", task_nmax, "define maximum number of jobs for a task"}, 36 {1, "options", task_options, "define optional variables associated with the job task"}, 37 {1, "npending", task_npending, "define maximum number of outstanding jobs for a task"}, 38 {1, "periods", task_periods, "define time scales for a task"}, 39 {1, "pulse", pulse, "set the scheduler update period"}, 40 {1, "flush", flush_jobs, "flush all jobs from the queue"}, 41 {1, "server", server, "server-specific commands"}, 42 {1, "showtask", showtask, "list a task"}, 43 {1, "status", status_server, "get system status"}, 44 {1, "stderr", task_stderr, "define a file for the job stderr dump"}, 45 {1, "stdout", task_stdout, "define a file for the job stdout dump"}, 46 {1, "task", task, "define a schedulable task"}, 47 {1, "task.exec", task_macros, "define pre-exec macro for a task"}, 48 {1, "task.exit", task_macros, "define exit macros for a task"}, 49 {1, "trange", task_trange, "define valid/invalid time periods for a task"}, 50 {1, "verbose", verbose, "set/toggle verbose mode"}, 51 {1, "version", version, "show version information"}, 52 52 }; 53 53 … … 59 59 InitJobs (); 60 60 InitJobIDs (); 61 InitInputs (); 61 62 62 63 for (i = 0; i < sizeof (cmds) / sizeof (Command); i++) { … … 64 65 } 65 66 } 67 68 void FreePantasksServer () { 69 FreeTasks (); 70 FreeJobs (); 71 FreeJobIDs (); 72 FreeInputs (); 73 }
Note:
See TracChangeset
for help on using the changeset viewer.
