Enhancing expect
Bug #1253833 reported by
Removed by request
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using Ubuntu 14.04 dev with upstart 1.11-0ubuntu1 and I'm missing the ability to use an expect stanza for more complex jobs. Here is an example upstart script:
exec sh -c 'sleep 5 &'
As I know it is not possible to make "sleep 5" as the main process for this job. expect fork/daemon will only trigger on fork() and expect stop only if "sleep 5" would raise a SIGSTOP to itself which is not possible here. Maybe expect stop could be enhanced if this would not cause any other problems or an expect stanza for child processes could be added.
Changed in upstart: | |
status: | New → Incomplete |
To post a comment you must log in.
> Here is an example upstart script:
> exec sh -c 'sleep 5 &'
I don't get it. What exactly is this an example of? You should obviously write 'exec sleep 5' here, and all of the 'expect' options are then meaningless. Please explain what it is you're trying to accomplish here.