I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit a16bcf8e authored by zzz's avatar zzz
Browse files

pid dir defaults to system temp dir

parent 290af4c1
No related branches found
No related tags found
No related merge requests found
...@@ -178,12 +178,12 @@ public class I2PAppContext { ...@@ -178,12 +178,12 @@ public class I2PAppContext {
* Base i2p.dir.base getBaseDir() lib/, webapps/, docs/, geoip/, licenses/, ... * Base i2p.dir.base getBaseDir() lib/, webapps/, docs/, geoip/, licenses/, ...
* Temp i2p.dir.temp getTempDir() Temporary files * Temp i2p.dir.temp getTempDir() Temporary files
* Config i2p.dir.config getConfigDir() *.config, hosts.txt, addressbook/, ... * Config i2p.dir.config getConfigDir() *.config, hosts.txt, addressbook/, ...
* PID i2p.dir.pid getPIDDir() wrapper *.pid files, router.ping
* *
* (the following all default to the same as Config) * (the following all default to the same as Config)
* *
* Router i2p.dir.router getRouterDir() netDb/, peerProfiles/, router.*, keyBackup/, ... * Router i2p.dir.router getRouterDir() netDb/, peerProfiles/, router.*, keyBackup/, ...
* Log i2p.dir.log getLogDir() wrapper.log*, logs/ * Log i2p.dir.log getLogDir() wrapper.log*, logs/
* PID i2p.dir.pid getPIDDir() wrapper *.pid files, router.ping
* App i2p.dir.app getAppDir() eepsite/, ... * App i2p.dir.app getAppDir() eepsite/, ...
* *
* Note that we can't control where the wrapper puts its files. * Note that we can't control where the wrapper puts its files.
...@@ -234,15 +234,12 @@ public class I2PAppContext { ...@@ -234,15 +234,12 @@ public class I2PAppContext {
} else { } else {
_routerDir = _configDir; _routerDir = _configDir;
} }
// pid defaults to system temp directory
s = getProperty("i2p.dir.pid", System.getProperty("java.io.tmpdir"));
_pidDir = new File(s);
if (!_pidDir.exists())
_pidDir.mkdir();
// these all default to router // these all default to router
s = getProperty("i2p.dir.pid");
if (s != null) {
_pidDir = new File(s);
if (!_pidDir.exists())
_pidDir.mkdir();
} else {
_pidDir = _routerDir;
}
s = getProperty("i2p.dir.log"); s = getProperty("i2p.dir.log");
if (s != null) { if (s != null) {
_logDir = new File(s); _logDir = new File(s);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment