Commit 5c7b78db authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

More fixes. Now works on cluster nodes.

parent 44d05882
#!/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.
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment