PDA

View Full Version : [SOLVED] Run Upstart job on multiple conditions



zuker
August 30th, 2012, 11:25 AM
I have two upstart jobs ('install-nodejs-job' and 'deploy-my-app-job') on my ec2 instance with

start on net-device-up IFACE=eth0
Both have only pre-start and start scripts. My goal is to run third ('start-my-app-job') job after these jobs and I'm using following condition there:

start on started install-nodejs-job and started deploy-my-app-job
but 'start-my-app-job' does not starts. 'install-nodejs-job' and 'deploy-my-app-job' run definitely successfully (after reboot nodejs is installed and my app deployed) 'start-my-app-job' works to if run manually.

Thanks!

zuker
August 30th, 2012, 04:41 PM
False alarm. 'install-nodejs-job' and 'deploy-my-app-job' take not so few time as I supposed.