File: scanlogd.init

package info (click to toggle)
scanlogd 2.2.5-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 120 kB
  • ctags: 90
  • sloc: ansic: 492; makefile: 81; sh: 80
file content (45 lines) | stat: -rw-r--r-- 755 bytes parent folder | download | duplicates (6)
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
37
38
39
40
41
42
43
44
45
#!/bin/sh
# $Id: scanlogd.init,v 1.2 2004/06/02 00:58:16 solar Exp $
#
# chkconfig: - 35 85
# description: \
#	scanlogd detects and logs TCP port scans.
# processname: scanlogd

# Source function library.
. /etc/rc.d/init.d/functions

OWL_STARTUP_ENABLE=1

case "$1" in
start)
	if [ "0$OWL_STARTUP_VERSION" -ge 3 ]; then
		daemon --expect-user scanlogd scanlogd
	else
		daemon scanlogd
	fi
	;;
stop)
	if [ "0$OWL_STARTUP_VERSION" -ge 3 ]; then
		killproc --expect-user scanlogd scanlogd
	else
		killproc scanlogd
	fi
	;;
restart)
	$0 stop
	$0 start
	;;
status)
	if [ "0$OWL_STARTUP_VERSION" -ge 3 ]; then
		status --expect-user scanlogd scanlogd
	else
		status scanlogd
	fi
	;;
*)
	echo "Usage: scanlogd {start|stop|restart|status}"
	exit 1
esac

exit $?