init: support relation operators in env matches of start/stop conditions
Binary package hint: upstart
Adding support for relation operators in the start/stop on stanza will benefit future upstart scripts. In particular it will help when upstart's scope grows to encompass cron and udev style services.
My particular use case:
a temperature monitoring daemon which emits events along the lines of
initctl emit coretemp TEMP=37
A second daemon that starts/stops depending on the current temperature.
it could have a .conf file
#cpu is too hot
start on cputemp TEMP>60
stop on cputemp TEMP<50
It is currently very unwieldy to produce the start/stop on stanzas with only the equality comparisons.
start on cputemp TEMP=
stop on cputemp TEMP=
These do not even cover all the cases.
In general more powerful env matching syntax would help tremendously, adding relation operators should just be a first step.
|Scott James Remnant (scott) wrote : Re: [Bug 616575] Re: support relation operators in env matches of start/stop conditions||#2|
|Changed in upstart:|
|status:||New → Triaged|
|importance:||Undecided → Wishlist|