diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2012-07-20 12:44:40 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2012-07-20 12:48:04 +0000 |
commit | 7f567b56650dfd67ee2b36e863bbc49a07fc9ab1 (patch) | |
tree | 417eec8beb09176bce42a60e22561bc84ef355d7 /main/snort/snort.initd | |
parent | f1ed814b290153779a7a6df2716beab9d73dfedf (diff) | |
download | aports-7f567b56650dfd67ee2b36e863bbc49a07fc9ab1.tar.bz2 aports-7f567b56650dfd67ee2b36e863bbc49a07fc9ab1.tar.xz |
main/snort: add support for logrotate. Fix log dir permissions
Diffstat (limited to 'main/snort/snort.initd')
-rw-r--r-- | main/snort/snort.initd | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/main/snort/snort.initd b/main/snort/snort.initd index baed2dff2e..42605f1269 100644 --- a/main/snort/snort.initd +++ b/main/snort/snort.initd @@ -3,6 +3,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-analyzer/snort/files/snort.rc7,v 1.3 2007/04/22 06:21:15 dragonheart Exp $ +extra_commands="reload" + depend() { need net after firewall @@ -30,3 +32,11 @@ stop() { start-stop-daemon --stop --quiet --pidfile ${PIDFILE} eend $? } + +reload() { + ebegin "Reloading snort rules" + start-stop-daemon --stop --quiet --signal HUP --pidfile ${PIDFILE} + #FIXME + return 0 + eend $? +} |