Installation-n2n
This revision is from 2013/05/22 02:17. You can Restore it.
open
vim /etc/init.d/n2n
and paste (configure later from web interface)
#!/bin/sh # BEGIN INIT INFO # Provides: edge # Required-Start: $network $remote_fs $syslog # Required-Stop: $network $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: Start n2n daemon # END INIT INFO PROGDIR="/usr/sbin" PROGNAME="edge" MYIP="10.0.11.173" USR="demo" PASSWORD="pass" SUPERNODE="remoteqth.com" PORT="82" # COMMAND="$PROGDIR/$PROGNAME -a $MYIP -c $USR -k $PASSWORD -l $SUPERNODE:$PORT -f -d edge0" # PATH=/bin:/usr/bin:/sbin:/usr/sbin case "" in start) echo "Starting $COMMAND." $COMMAND & ;; stop) echo "Stoping $PROGNAME." killall $PROGNAME ;; restart) chown root:www-data /etc/init.d/n2n chmod 774 /etc/init.d/n2n update-rc.d n2n defaults stop start ;; *) echo "Usage: .. {start|stop|restart}" exit 1 ;; esac exit 0
- set daemon
{CODE}