Caching jobs

Jan Claeys lists at janc.be
Tue Oct 23 21:11:43 BST 2007


Op maandag 22-10-2007 om 21:48 uur [tijdzone +0100], schreef Scott James
Remnant:
> Upstart's jobs aren't shell scripts like SysV, and are instead parsed
> into memory just once on startup -- and watched with inotify for
> changes.

So they are "upstart scripts".  :)

> The parser is a string one; so it could be faster by being binary ...
> but it wouldn't actually buy you anything; you'd have to re-parse the
> text files on boot to make sure they hadn't been changed while the
> computer was off.

Storing the last file modification time inside the "binary blob" might
be good enough?

(Although I'm not sure this will gain a lot of speed, compared to
disadvantages of the relative opaqueness of a binary format?)


-- 
Jan Claeys




More information about the upstart-devel mailing list