logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

epmd.init (534B)


  1. #!/sbin/openrc-run
  2. # Copyright 2010-2019 Gentoo Authors
  3. # Distributed under the terms of the Apache License, Version 2.0
  4. ZT_ADDRESS=""
  5. pidfile="/var/run/epmd.pid"
  6. command_args="-daemon -relaxed_command_check -address 127.0.0.1"
  7. depend() {
  8. need net.lo
  9. before sshd
  10. }
  11. start() {
  12. ebegin "Starting Erlang Port Mapper Daemon"
  13. start-stop-daemon --start --quiet \
  14. --pidfile $pidfile \
  15. --exec /usr/bin/epmd -- $command_args
  16. eend $?
  17. }
  18. stop() {
  19. ebegin "Stopping Erlang Port Mapper Daemon"
  20. /usr/bin/epmd -kill >/dev/null
  21. eend $?
  22. }