Skip to content

Instantly share code, notes, and snippets.

@cherdt
Forked from JustinAzoff/bro.service
Last active July 18, 2017 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cherdt/9c7c315080101773146215fc630f448f to your computer and use it in GitHub Desktop.
Save cherdt/9c7c315080101773146215fc630f448f to your computer and use it in GitHub Desktop.
Broctl systemd unit
[Unit]
Description=Bro
After=network.target
AssertPathExists=/var/log/bro_json
AssertPathExists=/var/spool/bro
AssertPathExists=/opt/bro/bin
[Service]
User=bro
Group=bro
ExecStartPre=-/opt/bro/bin/broctl cleanup
ExecStartPre=/opt/bro/bin/broctl check
ExecStartPre=/opt/bro/bin/broctl install
ExecStart=/opt/bro/bin/broctl start
ExecStop=/opt/bro/bin/broctl stop
RestartSec=10s
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment