Package-Manager: portage-2.3.2
#!/sbin/openrc-run
-# Copyright 2015 Gentoo Foundation
+# Copyright 2015-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
start_pre() {
checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
}
+
+stop() {
+ # SIGINT is required for graceful shutdown of consul-template
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --signal SIGINT --pidfile "${pidfile}"
+ eend $?
+}
ExecStart=/usr/bin/consul-template $CONSUL_TEMPLATE_DAEMON_OPTS
Restart=on-failure
SuccessExitStatus=12
+KillSignal=SIGINT
ExecReload=/bin/kill -HUP $MAINPID
[Install]