summaryrefslogtreecommitdiff
path: root/net-analyzer/ipguard/files/ipguard-1.04-init.d.patch
blob: 447d818bf965d6c76d49493c7c0a8bd9449ade05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- a/doc/ipguard.gentoo
+++ b/doc/ipguard.gentoo
@@ -1,7 +1,7 @@
 #! /sbin/runscript
 ##  $Id: ipguard.gentoo,v 1.5 2010/07/12 03:46:52 sead Exp $
 
-opts="reload"
+extra_commands="reload"
 
 depend() {
 	use net
@@ -9,20 +9,20 @@
 
 start() {
 	ebegin "Starting ipguard"
-	start-stop-daemon --start --quiet --pidfile /var/run/ipguard.pid \
-		--exec /usr/sbin/ipguard -- -u 300 -xz
+	start-stop-daemon --start --quiet --pidfile /run/ipguard.pid \
+		--exec /usr/sbin/ipguard -- ${OPTS} ${IFACE}
 	eend $?
 }
 
 stop() {
 	ebegin "Stopping ipguard"
-	start-stop-daemon --stop --quiet --pidfile /var/run/ipguard.pid
+	start-stop-daemon --stop --quiet --pidfile /run/ipguard.pid
 	eend $?
 }
 
 reload() {
        ebegin "Reloading ipguard"
-       start-stop-daemon --stop --quiet --pidfile /var/run/ipguard.pid \
+       start-stop-daemon --stop --quiet --pidfile /run/ipguard.pid \
               --signal HUP
        eend $?
 }