480a8d9dc1
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28964 3c298f89-4303-0410-b956-a3cf2f4a3e73
23 lines
531 B
Bash
23 lines
531 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2007-2011 OpenWrt.org
|
|
|
|
START=99
|
|
|
|
SERVICE_DAEMONIZE=1
|
|
SERVICE_WRITE_PID=1
|
|
|
|
start() {
|
|
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
|
|
}
|
|
|
|
stop() {
|
|
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
|
|
}
|