File vmware-usbarbitrator.openrc of Package vmware-workstation-2xHx-lite
#!/sbin/openrc-run
description="VMware USB Arbitrator service"
command="/usr/lib/vmware/bin/vmware-usbarbitrator"
command_args="-f"
command_background="yes"
pidfile="/var/run/vmware-usbarbitrator.pid"
depend() {
after vmware
use logger
}
start_pre() {
checkpath --directory --mode 0755 /var/run
}
start() {
ebegin "Starting VMware USB Arbitrator"
start-stop-daemon --start \
--background \
--make-pidfile \
--pidfile "${pidfile}" \
--exec "${command}" \
-- ${command_args}
eend $?
}
stop() {
ebegin "Stopping VMware USB Arbitrator"
start-stop-daemon --stop \
--pidfile "${pidfile}" \
--exec "${command}"
eend $?
}