-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathscanlogd.init
More file actions
45 lines (41 loc) · 787 Bytes
/
scanlogd.init
File metadata and controls
45 lines (41 loc) · 787 Bytes
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
# $Owl: Owl/packages/scanlogd/scanlogd/scanlogd.init,v 1.3 2005/11/16 13:31:51 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 $?