com.sun.akuma
Class Daemon.WithoutChdir

java.lang.Object
  extended by com.sun.akuma.Daemon
      extended by com.sun.akuma.Daemon.WithoutChdir
Enclosing class:
Daemon

public static class Daemon.WithoutChdir
extends Daemon

Flavor of Daemon that doesn't change the current directory.

This turns out to be often more useful as JavaVM can take lot of arguments and system properties that use paths, and when we CD they won't work.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.akuma.Daemon
Daemon.WithoutChdir
 
Constructor Summary
Daemon.WithoutChdir()
           
 
Method Summary
protected  void chdirToRoot()
          change directory to '/' to avoid locking directories.
 
Methods inherited from class com.sun.akuma.Daemon
all, closeDescriptors, daemonize, daemonize, getCurrentExecutable, init, init, isDaemonized, selfExec, writePidFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Daemon.WithoutChdir

public Daemon.WithoutChdir()
Method Detail

chdirToRoot

protected void chdirToRoot()
Description copied from class: Daemon
change directory to '/' to avoid locking directories.

Overrides:
chdirToRoot in class Daemon


Copyright © 2012. All Rights Reserved.