Enable automatic restart on crashes

named contains high number of assertions checking expected state of the
daemon. That is part of defensive code style to prevent many attacks.
The most common failure is failing some assertion check in rare
circumstances. Even when this should not happen, try keeping the service
running. If such failed assertion produces coredump just from time to
time, avoid failing hard the whole service. coredumpctl will keep track
of all crashes anyway.
This commit is contained in:
Petr Menšík 2022-09-30 12:51:19 +02:00
parent dc511b8cc3
commit e6424d1a09
3 changed files with 3 additions and 0 deletions

View File

@ -959,6 +959,7 @@ fi;
%changelog
* Fri Sep 30 2022 Petr Menšík <pemensik@redhat.com> - 32:9.18.7-3
- Update License to SPDX identifier
- Enable automatic restart on crashes
* Sat Sep 24 2022 Petr Menšík <pemensik@redhat.com> - 32:9.18.7-2
- Build ARM documentation also with older sphinx on RHEL9

View File

@ -25,6 +25,7 @@ ExecReload=/bin/sh -c 'if /usr/sbin/rndc null > /dev/null 2>&1; then /usr/sbin/r
ExecStop=/bin/sh -c '/usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID'
PrivateTmp=false
Restart=on-abnormal
[Install]
WantedBy=multi-user.target

View File

@ -20,6 +20,7 @@ ExecReload=/bin/sh -c 'if /usr/sbin/rndc null > /dev/null 2>&1; then /usr/sbin/r
ExecStop=/bin/sh -c '/usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID'
PrivateTmp=true
Restart=on-abnormal
[Install]
WantedBy=multi-user.target