Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 220151 Details for
Bug 261175
net-misc/n2n svn ebuild request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/etc/init.d/n2n
n2n (text/plain), 2.18 KB, created by
Leonid Eremin
on 2010-02-18 13:28:40 UTC
(
hide
)
Description:
/etc/init.d/n2n
Filename:
MIME Type:
Creator:
Leonid Eremin
Created:
2010-02-18 13:28:40 UTC
Size:
2.18 KB
patch
obsolete
>#!/sbin/runscript > >INSTANCE=${SVCNAME#*.} >EXEC=/usr/sbin/edge >PIDFILE=/var/run/n2n.${INSTANCE}.pid > >depend() { > need net > use logger >} > >start() { > local OPTIONS="" > ebegin "Starting ${SVCNAME}" > if [ "$INSTANCE" = "n2n" ]; then > eerror "Do not use this script directly. Create a symlink." > return 1; > fi > > if [ -z "${SUPERNODE}" ]; then > eerror "Supernode not specified in file /etc/conf.d/n2n.${INSTANCE}" > return 1; > else > OPTIONS="${OPTIONS} -l ${SUPERNODE}" > fi > > if [ -z "${IP}" ]; then > eerror "IP not specified in file /etc/conf.d/n2n.${INSTANCE}" > return 1; > else > OPTIONS="${OPTIONS} -a ${IP}" > fi > > if [ -z "${COMMUNITY}" ]; then > eerror "COMMUNITY not specified in file /etc/conf.d/n2n.${INSTANCE}" > return 1; > else > OPTIONS="${OPTIONS} -c ${COMMUNITY}" > fi > > if [ -z "${KEY}" ]; then > eerror "KEY not specified in file /etc/conf.d/n2n.${INSTANCE}" > return 1; > else > OPTIONS="${OPTIONS} -k ${KEY}" > fi > > if [ ! -z "${IFACE}" ]; then > OPTIONS="${OPTIONS} -d ${IFACE}" > fi > > if [ ! -z "${MASK}" ]; then > OPTIONS="${OPTIONS} -s ${MASK}" > fi > > if [ ! -z "${PORT}" ]; then > OPTIONS="${OPTIONS} -p ${PORT}" > fi > > if [ "${RESOLVE_SUPERNODE}" = "y" ]; then > OPTIONS="${OPTIONS} -b" > fi > > if [ ! -z "${MAC}" ]; then > OPTIONS="${OPTIONS} -m ${MAC}" > fi > > if [ ! -z "${MTU}" ]; then > OPTIONS="${OPTIONS} -M ${MTU}" > fi > > if [ "${HTTP_TUNNELING}" = "y" ]; then > OPTIONS="${OPTIONS} -t" > fi > > if [ "${ENABLE_FORWARDING}" = "y" ]; then > OPTIONS="${OPTIONS} -r" > fi > > if [ ! -z "${USE_UID}" ]; then > OPTIONS="${OPTIONS} -u ${USE_UID}" > fi > > if [ ! -z "${USE_GID}" ]; then > OPTIONS="${OPTIONS} -u ${USE_GID}" > fi > ># echo "options= ${OPTIONS}" > start-stop-daemon --start --exec /usr/sbin/edge \ > --pidfile $PIDFILE -m -b -- \ > ${OPTIONS} >/dev/null > eend $? >} > >stop() { > ebegin "Stopping n2n" > start-stop-daemon --stop \ > --pidfile ${PIDFILE} >/dev/null > eend $? >} > >restart() { > stop > sleep 1 # Wait 1 second before starting again > start >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 261175
:
183893
| 220151 |
220153