--- a/sys-cluster/nomad/files/nomad.initd Fri May 01 18:28:15 2020 -0400
+++ b/sys-cluster/nomad/files/nomad.initd Tue Sep 29 22:38:38 2020 -0400
@@ -1,27 +1,24 @@
#!/sbin/openrc-run
-# Copyright 2015-2017 Gentoo Foundation
+# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-description="nomad agent"
-extra_started_commands="reload"
export GOMAXPROCS=${GOMAXPROCS:-2}
group=${group:-${RC_SVCNAME}}
user=${user:-${RC_SVCNAME}}
-pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+description="simple and flexible workload orchestrator"
command="/usr/bin/${RC_SVCNAME}"
-command_args="agent ${command_args:-config-dir=/etc/consul.d}"
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
- --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \
- --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
-stopsig="SIGINT"
+ --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \
+ --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
+stopsig=SIGINT
+extra_started_commands=reload
depend() {
- need net
+ after net
}
reload() {
- ebegin "Reloading ${RC_SVCNAME}"
- ${command} reload
- eend $?
+ start-stop-daemon --signal HUP --pidfile "${pidfile}"
}