TowerPower | Hi, I'm trying to set up a basic upstart job to launch a tmux session. In pre-start, I'm running 'tmux has-session -t foo' and then testing the exit code. Problem is, when the code is 1 (failed), the script stops. I guess I want to make sure that that's expected behaviour, reading the docs I can't find any reference to a command in a script failing making the whole job fail. Any suggestions to workaround? | 03:27 |
---|---|---|
TowerPower | I misspoke on the exit code. Perhaps a more succinct way of putting it is: if pre-start contains the line false (exit code 0), the whole job fails. Is that expected behaviour and is there a way to make the job not fail? | 03:31 |
JanC | TowerPower: upstart runs all scripts with "/bin/sh -e" | 05:21 |
JanC | from the manual: """script ... end script / This stanza defines the process to be run as a shell script that will be executed using sh(1). The -e shell option is always used, so any command that fails will terminate the script.""" | 05:26 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!