-
-
Save cherdt/9c7c315080101773146215fc630f448f to your computer and use it in GitHub Desktop.
Broctl systemd unit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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