summaryrefslogtreecommitdiff
blob: c6fed548f912be94ee14048d75bdc31524d1147d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/runscript
#
# init.d script for net-analyzer/netperf's netserver
#

depend() {
    use net
}

start() {
    ebegin 'Starting netperf server (netserver)'
    start-stop-daemon --start --quiet --chuid nobody \
        --exec /usr/sbin/netserver -- ${NETSERVER_ARGS} >/dev/null
    eend $?
}

stop() {
    ebegin 'Stopping netperf server (netserver)'
    start-stop-daemon --stop --quiet --exec /usr/sbin/netserver
    eend $?
}