github.com/osrg/gobgp/v3@v3.30.0/tools/contrib/ubuntu/gobgpd.conf (about)

     1  description "GoBGP BGP daemon"
     2  author "Pavel Odintsov <pavel.odintsov@gmail.com>"
     3  
     4  start on (filesystem and net-device-up IFACE=lo)
     5  stop on runlevel [!2345]
     6  
     7  # TODO: use path without version number
     8  env DAEMON=/usr/sbin/gobgpd
     9  env CONFIGURATION_FILE=/etc/gobgpd.conf
    10  env DAEMON_OPTIONS="--disable-stdlog --syslog yes"
    11  
    12  #expect fork
    13  #respawn
    14  #respawn limit 10 5
    15  #oom never
    16  
    17  # Check configuration before start. You could check result in dmesg output:
    18  # gobgp pre-start process (12265) terminated with status 1
    19  pre-start script
    20          $DAEMON --dry-run -f $CONFIGURATION_FILE 
    21          if [ $? -ne 0 ]; then
    22              exit $?
    23          fi
    24  end script
    25  
    26  exec $DAEMON -f $CONFIGURATION_FILE $DAEMON_OPTIONS