Starting Erlang at NetBSD boot up

Posted by marian on April 16, 2010

This would do the job:

vi /etc/rc.d/erlang.sh

  1. #!/bin/sh
  2. case $1 in
  3. start)
  4.         /usr/pkg/bin/erl -Pa /home/user/path_to_your_applications +A 5 -remsh -name e1@192.168.1.5 -heart -detached  -setcookie "mycookie" &
  5.         ;;
  6. stop)
  7.         killall erl
  8.         ;;
  9. esac
Trackbacks

Use this link to trackback from your own site.

Comments

You must be logged in to leave a response.