8ffd268207
git-svn-id: svn://svn.openwrt.org/openwrt/packages@31051 3c298f89-4303-0410-b956-a3cf2f4a3e73
18 lines
283 B
Bash
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"
|
|
}
|