packages/net/portsentry/files/portsentry.init
nico 480a8d9dc1 packages/portsentry: pass optimization flags, disable daemon support, use new service functions
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28964 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 01:30:18 +00:00

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
}