Nomad is a flexible, enterprise-grade cluster scheduler designed to easily integrate into existing workflows. Nomad can run a diverse workload of micro-service, batch, containerized and non-containerized applications. Nomad is easy to operate and scale and integrates seamlessly with Consul and Vault. Support for Mhz computation on OpenBSD is being worked on. Until it's committed, it must be manually configured using 'cpu_total_compute'. ok robert@
18 lines
300 B
Bash
18 lines
300 B
Bash
#!/bin/ksh
|
|
#
|
|
# $OpenBSD: nomad.rc,v 1.1.1.1 2018/10/27 16:44:55 ajacoutot Exp $
|
|
|
|
daemon="${TRUEPREFIX}/bin/nomad agent"
|
|
daemon_flags="-config ${SYSCONFDIR}/nomad/nomad.hcl"
|
|
daemon_user="_nomad"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
rc_bg=YES
|
|
|
|
rc_stop() {
|
|
pkill -INT -T "${daemon_rtable}" -xf "${pexp}"
|
|
}
|
|
|
|
rc_cmd $1
|