~beehock/upstart/upstart.fix-328881

« back to all changes in this revision

Viewing changes to init/parse_job.c

  • Committer: BeeHock Goh
  • Date: 2011-03-11 00:32:18 UTC
  • Revision ID: beehock@gmail.com-20110311003218-ybnoh54iza5s55so
2011-03-10 BeeHock Goh <beehock@gmail.com>

        * Extend support for stanza console to support logging (LP: 328881)
        * console logged will redirect output to /var/log/upstart.log

Show diffs side-by-side

added added

removed removed

Lines of Context:
2082
2082
                class->console = CONSOLE_OUTPUT;
2083
2083
        } else if (! strcmp (arg, "owner")) {
2084
2084
                class->console = CONSOLE_OWNER;
 
2085
        } else if (! strcmp (arg, "logged")) {
 
2086
                class->console = CONSOLE_LOGGED;
2085
2087
        } else {
2086
2088
                nih_return_error (-1, NIH_CONFIG_UNKNOWN_STANZA,
2087
2089
                                  _(NIH_CONFIG_UNKNOWN_STANZA_STR));