Last active
September 22, 2021 14:37
-
-
Save Ne00n/d7abcf8006d0a69fedf7b7b4a9983487 to your computer and use it in GitHub Desktop.
bird2 systemd priority
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SYSTEMD_EDITOR=tee systemctl edit --full bird <<'EOF' | |
# /lib/systemd/system/bird.service | |
[Unit] | |
Description=BIRD Internet Routing Daemon | |
After=network.target | |
[Service] | |
EnvironmentFile=/etc/bird/envvars | |
ExecStartPre=/usr/lib/bird/prepare-environment | |
ExecStartPre=/usr/sbin/bird -p | |
ExecReload=/usr/sbin/birdc configure | |
ExecStart=/usr/sbin/bird -f -u $BIRD_RUN_USER -g $BIRD_RUN_GROUP $BIRD_ARGS | |
Restart=on-abort | |
CPUSchedulingPolicy=fifo | |
CPUSchedulingPriority=40 | |
[Install] | |
WantedBy=multi-user.target | |
EOF | |
systemctl restart bird | |
systemctl enable bird |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment