bid | hi, 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 |
---|---|---|
SpamapS | bid: instance is for running two of the same job at the same time. | 20:48 |
SpamapS | bid: you can just use any variable you want in the job | 20:49 |
SpamapS | bid: so 'start yourapp FOO=bar' will set $FOO to bar in the job | 20:50 |
bid | thanks 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 |
SpamapS | bid: yes | 22:17 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!