Main page
Recent changes
Installation-n2n
B
I
U
S
link
image
code
list
Show page
Syntax
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 "$1" in start) echo "Starting $COMMAND." $COMMAND & ;; stop) echo "Stoping $PROGNAME." killall $PROGNAME ;; restart) $0 stop $0 start ;; *) echo "Usage: .. {start|stop|restart}" exit 1 ;; esac exit 0}} * set daemon {{ #chown root:www-data /etc/init.d/n2n #chmod 774 /etc/init.d/n2n chown root:www-data /etc/default/n2n chmod 774 /etc/default/n2n update-rc.d n2n defaults }}