diff options
author | John Hixson <jhixson@FreeBSD.org> | 2023-09-22 09:36:45 -0700 |
---|---|---|
committer | John Hixson <jhixson@FreeBSD.org> | 2023-09-22 09:40:25 -0700 |
commit | 1e8c5858e52fcb3b1664e67740b1f1396ea6ac5d (patch) | |
tree | 5be9c44083c1315e2cff7cf653d00eb7ff1038ce /sysutils/nomad/files/nomad.in | |
parent | security/openssh-portable: Fix build with KERB_GSSAPI set (diff) |
sysutils/nomad: Update to v1.6.2
Add 2 new configuration knobs:
nomad_mode (default to agent for backward compatibility)
nomad_args (default to -data-dir=${nomad_dir} for backward compatibility)
PR: 272162
Diffstat (limited to 'sysutils/nomad/files/nomad.in')
-rw-r--r-- | sysutils/nomad/files/nomad.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sysutils/nomad/files/nomad.in b/sysutils/nomad/files/nomad.in index c43c3cff53b0..0a741a550c1b 100644 --- a/sysutils/nomad/files/nomad.in +++ b/sysutils/nomad/files/nomad.in @@ -19,6 +19,10 @@ # Default is "/var/tmp/nomad". # nomad_env (dir): Set environment variables used with nomad # Default is "". +# nomad_mode (mode): Set the nomad mode to be used +# Default is "agent". +# nomad_args (args): Set arguments to be passed to nomad +# Default is "-data-dir=${nomad_dir}". . /etc/rc.subr @@ -33,12 +37,14 @@ load_rc_config $name : ${nomad_group:="nomad"} : ${nomad_dir:="/var/tmp/nomad"} : ${nomad_env:=""} +: ${nomad_mode:="agent"} +: ${nomad_args:="-data-dir=${nomad_dir}"} pidfile=/var/run/nomad.pid procname="%%PREFIX%%/bin/nomad" command="/usr/sbin/daemon" extra_commands="reload" -nomad_command="/usr/bin/env ${nomad_env} ${procname} agent -data-dir=${nomad_dir} ${nomad_args}" +nomad_command="/usr/bin/env ${nomad_env} ${procname} ${nomad_mode} ${nomad_args}" command_args="-f -t ${name} -p ${pidfile} ${nomad_command}" start_precmd=nomad_startprecmd |