mirror of
https://github.com/zerotier/edge.git
synced 2026-05-22 16:25:05 -07:00
19 lines
326 B
Plaintext
Executable File
19 lines
326 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
command="/usr/bin/iperf"
|
|
pidfile="/var/run/$SVCNAME/$SVCNAME.pid"
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting $SVCNAME"
|
|
start-stop-daemon --start --make-pid --user ${exec_user:-nobody} \
|
|
--pidfile ${pidfile} --background --exec $command \
|
|
-- --server ${command_args}
|
|
eend
|
|
}
|
|
|