diff options
author | William Hubbs <williamh@gentoo.org> | 2020-07-27 17:29:31 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2020-07-27 17:30:41 -0500 |
commit | 6af57e471c364b0feb5c452e0395708a56ac5edb (patch) | |
tree | b8532c031dd1ce7fac8a9fd93c76484410ec3f8d /sys-cluster/nomad/files | |
parent | mail-client/neomutt: x86 stable (bug #728302) (diff) | |
download | gentoo-6af57e471c364b0feb5c452e0395708a56ac5edb.tar.gz gentoo-6af57e471c364b0feb5c452e0395708a56ac5edb.tar.bz2 gentoo-6af57e471c364b0feb5c452e0395708a56ac5edb.zip |
sys-cluster/nomad: workload orchestrator for VMs and containers
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'sys-cluster/nomad/files')
-rw-r--r-- | sys-cluster/nomad/files/nomad.confd | 2 | ||||
-rw-r--r-- | sys-cluster/nomad/files/nomad.initd | 20 | ||||
-rw-r--r-- | sys-cluster/nomad/files/nomad.logrotated | 7 |
3 files changed, 29 insertions, 0 deletions
diff --git a/sys-cluster/nomad/files/nomad.confd b/sys-cluster/nomad/files/nomad.confd new file mode 100644 index 000000000000..b0a05ca40c60 --- /dev/null +++ b/sys-cluster/nomad/files/nomad.confd @@ -0,0 +1,2 @@ +# extra arguments for nomad +command_args="agent -config=/etc/nomad.d" diff --git a/sys-cluster/nomad/files/nomad.initd b/sys-cluster/nomad/files/nomad.initd new file mode 100644 index 000000000000..2c3df5ff1e0e --- /dev/null +++ b/sys-cluster/nomad/files/nomad.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="simple and flexible workload orchestrator" +command="/usr/bin/${RC_SVCNAME}" +pidfile="/run/${RC_SVCNAME}.pid" +command_background="true" +start_stop_daemon_args="--stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \ + --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" +stopsig=SIGINT +extra_started_commands=reload + +depend() { + after net +} + +reload() { + start-stop-daemon --signal HUP --pidfile "${pidfile}" +} diff --git a/sys-cluster/nomad/files/nomad.logrotated b/sys-cluster/nomad/files/nomad.logrotated new file mode 100644 index 000000000000..6cae2fdd4f76 --- /dev/null +++ b/sys-cluster/nomad/files/nomad.logrotated @@ -0,0 +1,7 @@ +/var/log/nomad/nomad.log { + missingok + size 5M + rotate 3 + compress + copytruncate +} |