2008-01-04 02:38:44 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2011-11-12 01:30:18 +00:00
|
|
|
# Copyright (C) 2007-2011 OpenWrt.org
|
|
|
|
|
2008-01-04 02:38:44 +00:00
|
|
|
START=99
|
|
|
|
|
2011-11-12 01:30:18 +00:00
|
|
|
SERVICE_DAEMONIZE=1
|
|
|
|
SERVICE_WRITE_PID=1
|
|
|
|
|
2008-01-04 02:38:44 +00:00
|
|
|
start() {
|
2011-11-12 01:30:18 +00:00
|
|
|
mkdir -m 0755 -p /var/run/portsentry
|
|
|
|
SERVICE_PID_FILE="/var/run/portsentry-atcp.pid" \
|
|
|
|
service_start /usr/bin/portsentry -atcp
|
|
|
|
SERVICE_PID_FILE="/var/run/portsentry-audp.pid" \
|
|
|
|
service_start /usr/bin/portsentry -audp
|
2008-01-04 02:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2011-11-12 01:30:18 +00:00
|
|
|
SERVICE_PID_FILE="/var/run/portsentry-atcp.pid" \
|
|
|
|
service_stop /usr/bin/portsentry
|
|
|
|
SERVICE_PID_FILE="/var/run/portsentry-audp.pid" \
|
|
|
|
service_stop /usr/bin/portsentry
|
2008-01-04 02:38:44 +00:00
|
|
|
}
|