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

Viewing all changes in revision 858.

  • Committer: Scott James Remnant
  • Date: 2008-03-02 21:52:50 UTC
  • Revision ID: scott@netsplit.com-20080302215250-jawuacmbl0ri58it
* init/job.h (Job): Add stop_env member to store environment from
stop events for the stop script.
* init/job.c (job_new): Initialise stop_env to NULL.
(job_handle_event): Copy environment from the stop_on operator into
the stop_env member.
* init/tests/test_job.c (test_new): Check that stop_env is NULL.
(test_handle_event): Add lots of tests to make sure that the
environment is collected from the events and stored in stop_env
properly, overwriting what was there already if necessary.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: