* updated knights (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / security / snort / snort.init
blobb10007cb2bf5fc8fd3fbdd3e15e78b9fd8e490a8
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/snort/snort.init
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
5
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 # Desc: optional daemon for snort IDS
14 # Runlevel: 70 rcX
17 main_begin
19     block_begin(start, `Starting snort')
20         check(`D_prefix/bin/snort -D -c D_sysconfdir/snort.conf')
21     block_end
23     block_begin(stop, `Stopping snort')
24         check(`killall D_bindir/snort')
25     block_end
27     block_begin(stop, `Restarting snort')
28         check(`killall -1 D_bindir/snort')
29     block_end
31 main_end