docs/config/section/hook.md
raw| 1 | # hook |
| 2 | |
| 3 | Foomuuri can run external command before/after starting and stopping. This |
| 4 | section configures those commands. Example: |
| 5 | |
| 6 | ``` |
| 7 | hook { |
| 8 | pre_start command-to-run with arguments before loading ruleset |
| 9 | post_start echo firewall started |
| 10 | pre_stop /etc/foomuuri/pre_stop.sh |
| 11 | post_stop /etc/foomuuri/post_stop.sh with arguments |
| 12 | } |
| 13 | ``` |