Skip to content

Instantly share code, notes, and snippets.

@JustinAzoff
Last active March 22, 2021 11:43
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JustinAzoff/db71b901b1070a88f2d72738bf212749 to your computer and use it in GitHub Desktop.
Save JustinAzoff/db71b901b1070a88f2d72738bf212749 to your computer and use it in GitHub Desktop.
Broctl systemd unit
[Unit]
Description=Bro
After=network.target
[Service]
ExecStartPre=-/bro/bin/broctl cleanup
ExecStartPre=/bro/bin/broctl check
ExecStartPre=/bro/bin/broctl install
ExecStart=/bro/bin/broctl start
ExecStop=/bro/bin/broctl stop
RestartSec=10s
Type=oneshot
RemainAfterExit=yes
TimeoutStopSec=600
[Install]
WantedBy=multi-user.target
@hydrocat
Copy link

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment