On Thu, 2008-11-06 at 16:05 +0100, Harald Hoyer wrote:

> >> With the current implementation I see the following problems:
> >>    - the job description files are very static. Dependencies can only be 
> >> added, 
> >> modified, deleted by modifying this one job file (not package friendly)
> >>
> > This is an ongoing discussion: what ideas do you have?
> > 
> >>    - there is no dependency like "start me before service xyz"
> >>
> > 0.3/0.5:
> > start on starting syz
> >               ~~~
> 
> which really starts syz only if the other job is started?
> 
> like:
> 
> network:
> start on starting ldap-client
> start on starting mount-nfs-filesystems
> 
The difference between starting and started is quite subtle, but very
important.

"starting" is emitted when the job is given the "start" command, but
_before_ any scripts or execs are run

"started" is emitted *after* all of the scripts or exces (including the
main one) have been run.

And, most importantly, "starting" *waits* for your job to finish before
continuing.

foo:
        start on starting bar
        exec sleep 20

bar:
        exec echo woo

start bar
*20 seconds later*
woo

> >>    - turning a job/service off requires removing the job file, which may 
> >> be solved 
> >> by symlinks?
> >>
> > Again an ongoing discussion: what ideas do you have?
> > 
> > Do you want to disable it from automatic starting, or prevent manual
> > starting as well?
> 
> both
> 
How is that any semantically different from deleting the job?

Why do you want to disable it?

Scott
-- 
Have you ever, ever felt like this?
Had strange things happen?  Are you going round the twist?

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
upstart-devel mailing list
upstart-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/upstart-devel

Reply via email to