• Get Review Board
  • What's New
  • Products
  • Review Board Code review, image review, and document review
  • Documentation
  • Release Notes
  • Power Pack Enterprise integrations, reports, and enhanced document review
  • Try for 60 Days
  • Purchase
  • RBCommons Review Board as a Service, hosted by us
  • Pricing
  • RBTools Command line tools and Python API for Review Board
  • Documentation
  • Release Notes
  • Review Bot Automated code review, connecting tools you already use
  • Documentation
  • Release Notes
  • RB Gateway Manage Git and Mercurial repositories in your network
  • Documentation
  • Release Notes
  • Learn and Explore
  • What is Code Review?
  • Documentation
  • Frequently Asked Questions
  • Support Options
  • Third-Party Integrations
  • Demo
  • Review Board RBTools Power Pack Review Bot Djblets RB Gateway
    1. RB Gateway 2.x
    2. Version 2.x
    3. Version 1.0
    4. Running rb-gateway
  • Home
  • Installing Review Board Gateway
  • Configuring Review Board Gateway
  • Running rb-gateway
  • General Index
  • Release Notes
  • Running rb-gateway¶

    Once rb-gateway is installed and configured, start the server with the serve command:

    $ ./rb-gateway serve
    

    By default, this reads config.json from the current directory. Use --config to specify a different path:

    $ ./rb-gateway --config /etc/rb-gateway/config.json serve
    

    The server reloads its configuration automatically when the config file changes or when it receives SIGHUP. Send SIGINT or SIGTERM to shut down gracefully.

    Commands¶

    rb-gateway supports the following commands:

    serve

    Start the API server. This is the default if no command is given.

    trigger-webhooks <repository> <event>

    Trigger matching webhooks for a repository and event.

    reinstall-hooks

    Re-install hook scripts for all repositories.

    The version can be printed with --version:

    $ ./rb-gateway --version
    

    Running rb-gateway as a Service¶

    It’s likely that you’ll want to run rb-gateway as a service that starts when you boot the server. There are many ways of doing this depending on your particular environment, but one of the more common ones is systemd. The below unit file example can be customized with the location of the rb-gateway binary and your config file:

    [Unit]
    Description=Review Board Gateway
    After=network.target
    
    [Service]
    User=rb-gateway
    KillSignal=SIGTERM
    ExecStart=/usr/local/bin/rb-gateway --config /etc/rb-gateway/config.json serve
    ExecReload=/bin/kill -HUP $MAINPID
    
    [Install]
    WantedBy=multi-user.target
    

    Keep up with the latest Review Board releases, security updates, and helpful information.

    About
    News
    Demo
    RBCommons Hosting
    Integrations
    Happy Users
    Support Options
    Documentation
    FAQ
    User Manual
    RBTools
    Administration Guide
    Power Pack
    Release Notes
    Downloads
    Review Board
    RBTools
    Djblets
    Power Pack
    Package Store
    PGP Signatures
    Contributing
    Bug Tracker
    Submit Patches
    Development Setup
    Wiki
    Follow Us
    Mailing Lists
    Reddit
    Twitter
    Mastodon
    Facebook
    YouTube
    Copyright © 2006-2026 Beanbag, Inc. All rights reserved.
    Terms of Service — Privacy Policy — AI Ethics Policy — Branding

    On this page

    • [Top]
    • Commands
    • Running rb-gateway as a Service