summaryrefslogtreecommitdiffstats
path: root/net/hsflowd/files/sflowovsd.init
blob: ab9bac983299fc43637b1fc51f7f1f6c65f0f496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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"
}