run-{task,job}d.sh: do not assume PATH, HOME and SHELL are set
commit03ef1728dbfd98e03563faaf4371127f2f3eb74d
authorKyle J. McKay <mackyle@gmail.com>
Fri, 15 Apr 2016 00:32:23 +0000 (14 17:32 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 15 Apr 2016 00:32:23 +0000 (14 17:32 -0700)
treee1cfa804b1439fa47076c508398813fa2146e28d
parent74bdaf5585764ab6d058cd5561c8e9d428f4e14d
run-{task,job}d.sh: do not assume PATH, HOME and SHELL are set

If PATH is unset use "$(/usr/bin/getconf PATH)".
If HOME is unset or cd "$HOME" fails, use /.
If SHELL is unset use /bin/sh.

Also move the defaults to the top of the file.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
toolbox/run-jobd.sh
toolbox/run-taskd.sh