Skip to content

Commit cbd5ab6

Browse files
committed
Merge branch 'devel'
2 parents 7a2af3a + 2b30d09 commit cbd5ab6

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,8 @@
132132
- Fixed typo in install tasks fixes #6 (thanks @asemt)
133133
- Added nomad_group_name and use nomad_iface (thanks @dggreenbaum)
134134
- Updated documentation
135+
136+
## v1.4.5
137+
138+
- Switch init scripts to send SIGTERM to address #2
139+
- Add leave_on_terminate and set to True by default

templates/base.hcl.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ advertise {
3333

3434
# Enable debug endpoints
3535
enable_debug = true
36+
37+
# Graceful leave on SIGTERM
38+
leave_on_terminate = true

templates/nomad_sysvinit.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ stop() {
5151
fi
5252

5353
mkpidfile
54-
killproc $KILLPROC_OPT $nomad -9
54+
killproc $KILLPROC_OPT $nomad -SIGTERM
5555

5656
retcode=$?
5757
rm -f /var/lock/subsys/nomad $PID_FILE

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.4.4
1+
v1.4.5

0 commit comments

Comments
 (0)