Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
5c7b78db
Commit
5c7b78db
authored
Jan 09, 2008
by
Leigh B. Stoller
Browse files
More fixes. Now works on cluster nodes.
parent
44d05882
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/common/config/rc.tunnels
View file @
5c7b78db
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2004 University of Utah and the Flux Group.
# Copyright (c) 2004
, 2008
University of Utah and the Flux Group.
# All rights reserved.
#
use
English
;
...
...
@@ -63,6 +63,7 @@ sub docleanup();
# After libsetup include; tunnels run outside in fake vnode setup.
my
$PIDFILE
=
CONFDIR
()
.
"
/tunnel.pid
";
my
$VTUNDCONFIG
=
CONFDIR
()
.
"
/vtund.conf
";
my
$LOGFILE
=
$LOGDIR
.
"
/vtund.debug
";
# Parse command line.
if
(
!
getopts
(
$optlist
,
\
%options
))
{
...
...
@@ -278,6 +279,17 @@ sub doboot()
"
Could not exec
$cmd
\n
");
}
}
#
# Now daemonize and let the boot continue.
#
if
(
TBBackGround
(
$LOGFILE
))
{
sleep
(
1
);
exit
(
0
);
}
# Fully disconnect from bootup.
setsid
();
#
# Just wait. We will die via the signal handler above.
#
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment