Skip to content

Commit 5191478

Browse files
committed
fix: increase restart interval for systemd-resolved
1 parent 1513817 commit 5191478

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

ansible/files/systemd-resolved.conf

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# the default is RestartSec=0. If the service fails to start because
2+
# of a systemic issue (e.g. rare case when disk is full) it will
3+
# quickly hit the burst limit (default of 5 failures within 10secs)
4+
# and thereafter be placed in a failed state. By increasing the
5+
# restart interval, we avoid that, and ensure that the service will be
6+
# started back up once any underlying issues are resolved.
7+
[Service]
8+
RestartSec=3

ansible/tasks/setup-system.yml

+13
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,19 @@
7272
- update
7373
- update-only
7474

75+
- name: create overrides dir
76+
file:
77+
state: directory
78+
owner: root
79+
group: root
80+
path: /etc/systemd/system/systemd-resolved.service.d
81+
mode: '0700'
82+
83+
- name: Custom systemd overrides for resolved
84+
copy:
85+
src: files/systemd-resolved.conf
86+
dest: /etc/systemd/system/systemd-resolved.service.d/override.conf
87+
7588
- name: System - Create services.slice
7689
template:
7790
src: files/services.slice.j2

common.vars.pkr.hcl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
postgres-version = "15.1.0.115"
1+
postgres-version = "15.1.0.116"

0 commit comments

Comments
 (0)