Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#40385 - [bind] Auto-restart bind if it exits.

Attached to Project: Community Packages
Opened by Steven Haigh (CRCinAU) - Friday, 16 May 2014, 00:55 GMT
Last edited by Sébastien Luttringer (seblu) - Friday, 16 May 2014, 09:42 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The current bind systemd unit does not restart bind if it crashes / exits. As such, if bind is running and crashes, DNS is unavailable. Logically, if you are running bind on a system, this is a VERY undesirable result.

I would like to suggest modification of the shipped systemd unit file to the following:
[Unit]
Description=Internet domain name server
After=network.target

[Service]
ExecStart=/usr/bin/named -f -u named
ExecReload=/usr/bin/rndc reload
ExecStop=/usr/bin/rndc stop
Restart=always

[Install]
WantedBy=multi-user.target

This will restart bind if it exits for any other reason than being stopped by systemd.

In a nutshell: If you're running bind, there is a reason for it and it shouldn't be able to exit without a damn good reason (ie being stopped).
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Friday, 16 May 2014, 09:42 GMT
Reason for closing:  Won't implement
Additional comments about closing:  No auto restart!
Comment by Sébastien Luttringer (seblu) - Friday, 16 May 2014, 09:41 GMT
This logic can be used for any daemon, but auto restart is by default a bad idea. Drop-in.d files is an easy way to set a Restart= to naughty dameons.
Otherwise, you should ask to systemd developers to allow to globally set default for Restart= parameters, if you really think everything you start should be restarted after a crash...

Loading...