igmpproxy-init.d 514 B

12345678910111213141516171819202122232425
  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. use logger
  7. }
  8. start() {
  9. ebegin "Starting IGMPproxy"
  10. start-stop-daemon --start --background \
  11. --make-pidfile --pidfile /var/run/igmpproxy.pid \
  12. --exec /usr/sbin/igmpproxy -- \
  13. ${IGMPPROXY_OPTS} "${IGMPPROXY_CONFIG:-/etc/igmpproxy.conf}"
  14. eend $?
  15. }
  16. stop() {
  17. ebegin "Stopping IGMPproxy"
  18. start-stop-daemon --stop --pidfile /var/run/igmpproxy.pid
  19. eend $?
  20. }