vboxwebsrv-initd 646 B

12345678910111213141516171819202122
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2016 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. depend() {
  5. need net
  6. }
  7. start() {
  8. ebegin "Starting VirtualBox WebService"
  9. start-stop-daemon --start --quiet --user ${VBOXWEBSRV_USER} --pidfile /var/run/vboxwebsrv.pid \
  10. --background --make-pidfile --exec /usr/bin/vboxwebsrv \
  11. -- -H ${VBOXWEBSRV_HOST} -p ${VBOXWEBSRV_PORT} -t ${VBOXWEBSRV_TIMEOUT} -i ${VBOXWEBSRV_INTERVAL}
  12. eend $?
  13. }
  14. stop() {
  15. ebegin "Stopping VirtualBox WebService"
  16. start-stop-daemon --stop --user ${VBOXWEBSRV_USER} --quiet --pidfile /var/run/vboxwebsrv.pid
  17. eend $?
  18. }