<div><span style="color: rgb(160, 160, 168); ">On Saturday, February 1, 2014 at 1:17 PM, Steve Langasek wrote:</span></div><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div>In general, anything you can do in a {pre,post}-{start,stop} script, you can</div><div>also do in a separate job with a 'start on {start,stopp}{ed,ing}' rule. And</div><div>in a case such as this where you are running the main job under some sort of</div><div>access controls, this is what you need to do.</div><div><br></div><div>Something like the following should work:</div><div><br></div><div>start on starting main_job</div><div>script</div><div> if $condition; then</div><div> stop main_job</div><div> fi</div><div>end script</div><div><br></div><div>Hope that helps,</div></div></div></span></blockquote><div>Ah yes, hadn't thought of that approach, that helps a lot! Thanks very much.</div><div><br></div><div>Stuart</div>