Bug 240732 - net/bird2: Expose graceful restart in rc script
Summary: net/bird2: Expose graceful restart in rc script
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Olivier Cochard
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-21 16:36 UTC by C
Modified: 2020-02-10 16:10 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (olivier)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description C 2019-09-21 16:36:39 UTC
BIRD2 supports a 'graceful restart' command since version 2.0.5.

Lets expose this functionality in a 'gracefulrestart' rc command:

"service bird gracefulrestart"

The rc script would have to invoke the following:
"birdc graceful restart"

Note: This terminates bird but does not start it again (which is a bit counter-intuitive due to the name)!


This is useful when restarting a BGP speaker - either just the daemon (bird2 update):

"service bird gracefulrestart && service bird start"

or the entire system (kernel update):

"service bird gracefulrestart && reboot"

To make use of this, the protocols also need to be configured in bird's configuration. Example for BGP:

graceful restart yes;
graceful restart time 300;

BGP graceful restart is defined in RFC 4724
BIRD supports it also for other protocols.
Comment 1 Olivier Cochard freebsd_committer freebsd_triage 2020-02-10 16:10:57 UTC
So why not calling it 'service bird gracefulstop' in place of gracefulrestart if the purpose is to graceful stop it ?