/srv/irclogs.ubuntu.com/2012/04/27/#upstart.txt

bidhi, is instance is a good way to pass args? i want to do somthng like this: service myapp arg restsrt. basicly i want to exec a different command depending the "arg" value... 20:45
SpamapSbid: instance is for running two of the same job at the same time.20:48
SpamapSbid: you can just use any variable you want in the job20:49
SpamapSbid: so 'start yourapp FOO=bar' will set $FOO to bar in the job20:50
bidthanks SpamapS, so i can do this "service myapp start foo=bar" and inside my script i can do this if [ "$foo" -eq "bar"]; then exec ... fi 20:56
SpamapSbid: yes22:17

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!