Lines 49-60
nomad_startprecmd()
Link Here
|
49 |
install -o ${nomad_user} -g ${nomad_group} /dev/null ${pidfile}; |
49 |
install -o ${nomad_user} -g ${nomad_group} /dev/null ${pidfile}; |
50 |
fi |
50 |
fi |
51 |
|
51 |
|
52 |
if [ ! -d ${nomad_dir} ]; then |
52 |
if [ ! -d "${nomad_dir}" ]; then |
53 |
install -d -o ${nomad_user} -g ${nomad_group} ${nomad_dir} |
53 |
install -d -o ${nomad_user} -g ${nomad_group} "${nomad_dir}" |
|
|
54 |
chmod 0700 "${nomad_dir}" |
54 |
fi |
55 |
fi |
|
|
56 |
|
55 |
if [ "${nomad_debug}" != "NO" ]; then |
57 |
if [ "${nomad_debug}" != "NO" ]; then |
56 |
command_args="-T ${name} ${command_args}" |
58 |
command_args="-T ${name} ${command_args}" |
57 |
fi |
59 |
fi |
|
|
60 |
|
61 |
if [ "$(stat -f "%Lp" "${nomad_dir}")" -ne "700" ]; then |
62 |
2>&1 echo "Error: File permissions of ${nomad_dir} must be 700, not starting." |
63 |
exit 1 |
64 |
fi |
58 |
} |
65 |
} |
59 |
|
66 |
|
60 |
run_rc_command "$1" |
67 |
run_rc_command "$1" |