sys-cluster/nomad: add nomad with ui support
Package-Manager: Portage-3.0.13, Repoman-3.0.2
This commit is contained in:
parent
c9affa7475
commit
bbe249adb3
6 changed files with 92 additions and 0 deletions
2
sys-cluster/nomad/files/nomad.confd
Normal file
2
sys-cluster/nomad/files/nomad.confd
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# extra arguments for nomad
|
||||
command_args="agent -config=/etc/nomad.d"
|
||||
20
sys-cluster/nomad/files/nomad.initd
Normal file
20
sys-cluster/nomad/files/nomad.initd
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 2020-2021 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}"
|
||||
}
|
||||
7
sys-cluster/nomad/files/nomad.logrotated
Normal file
7
sys-cluster/nomad/files/nomad.logrotated
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/var/log/nomad/nomad.log {
|
||||
missingok
|
||||
size 5M
|
||||
rotate 3
|
||||
compress
|
||||
copytruncate
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue