packages/net/hsflowd/files/sflowovsd.init
dingo 8ffd268207 [patchteam] Add two new packages, hsflowd and sflowovsd - Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
git-svn-id: svn://svn.openwrt.org/openwrt/packages@31051 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-21 12:36:52 +00:00

18 lines
283 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2012 OpenWrt.org
START=50
SERVICE_USE_PID=1
start() {
service_start /usr/sbin/sflowovsd -f /var/run/hsflowd.auto
}
stop() {
service_stop /usr/sbin/sflowovsd
pid_file="/var/run/sflowovsd.pid"
[ -f "$pid_file" ] && rm -f "$pid_file"
}