~vorlon/ubuntu/raring/upstart/lp.1199778

« back to all changes in this revision

Viewing changes to init/job_class.h

* init/parse_job.c, init/job_class.c, init/job_class.h: Added "usage"
  stanza which is used by initctl command.
* init/tests/test_parse_job.c: Tests for "usage" stanza
* init/man/init.5: "usage" stanza documentation.
* util/initctl.c, util/man/initctl.8: Added "inictl usage" command.
* util/tests/test_initctl.c: Tests for ""inictl usage" command.

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
 * @setuid: user name to drop to before starting process,
164
164
 * @setgid: group name to drop to before starting process,
165
165
 * @deleted: whether job should be deleted when finished.
 
166
 * @usage: usage text - how to control job
166
167
 *
167
168
 * This structure holds the configuration of a known task or service that
168
169
 * should be tracked by the init daemon; as tasks and services are
217
218
 
218
219
        int             deleted;
219
220
        int             debug;
 
221
 
 
222
        char           *usage;
220
223
} JobClass;
221
224
 
222
225
 
299
302
int         job_class_get_emits            (JobClass *class,
300
303
                                            NihDBusMessage *message,
301
304
                                            char ***emits);
 
305
int         job_class_get_usage            (JobClass *class,
 
306
                                            NihDBusMessage *message,
 
307
                                            char **usage);
302
308
 
303
309
ConsoleType job_class_console_type         (const char *console)
304
310
        __attribute__ ((warn_unused_result));