Skip to content

Instantly share code, notes, and snippets.

@Ne00n
Last active September 22, 2021 14:37
Show Gist options
  • Save Ne00n/d7abcf8006d0a69fedf7b7b4a9983487 to your computer and use it in GitHub Desktop.
Save Ne00n/d7abcf8006d0a69fedf7b7b4a9983487 to your computer and use it in GitHub Desktop.
bird2 systemd priority
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