diff options
author | onefang | 2021-08-18 13:21:43 +1000 |
---|---|---|
committer | onefang | 2021-08-18 13:21:43 +1000 |
commit | 544e1c2983600ecd277577140840bea962362b2d (patch) | |
tree | 0433b8d01068c0398de1fd1a3b9539c0d37a27b5 | |
parent | Sim stop tweaks. (diff) | |
download | opensim-SC-544e1c2983600ecd277577140840bea962362b2d.zip opensim-SC-544e1c2983600ecd277577140840bea962362b2d.tar.gz opensim-SC-544e1c2983600ecd277577140840bea962362b2d.tar.bz2 opensim-SC-544e1c2983600ecd277577140840bea962362b2d.tar.xz |
Move more stuff into the var directory.
-rw-r--r-- | OpenSim/Framework/Util.cs | 6 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/AssemblyResolver.cs | 2 | ||||
-rw-r--r-- | OpenSim/Tests/Robust/Server/DemonServer.cs | 4 | ||||
-rw-r--r-- | bin/OpenSim.ConsoleClient.exe.config | 2 | ||||
-rw-r--r-- | bin/OpenSim.exe.config | 4 | ||||
-rw-r--r-- | bin/Robust.Tests.dll.config | 2 | ||||
-rw-r--r-- | bin/Robust.exe.config | 4 | ||||
-rw-r--r-- | bin/Robust.ini | 2 | ||||
-rw-r--r-- | bin/config-include/config_DG.ini | 9 | ||||
-rw-r--r-- | bin/config-include/config_IG.ini | 9 | ||||
-rw-r--r-- | bin/config-include/config_MG.ini | 9 | ||||
-rw-r--r-- | bin/config-include/config_localhost.ini | 9 | ||||
-rw-r--r-- | example/config/ROBUST/.keep (renamed from example/backups/.keep) | 0 | ||||
-rw-r--r-- | example/config/config.ini | 9 | ||||
-rw-r--r-- | example/var/.keep (renamed from example/caches/.keep) | 0 | ||||
-rw-r--r-- | example/var/backups/.keep (renamed from example/caches/DataSnapshot/.keep) | 0 | ||||
-rw-r--r-- | example/var/backups/Default_Member.IAR (renamed from example/backups/DefaultMember.IAR) | bin | 156064132 -> 159923448 bytes | |||
-rw-r--r-- | example/var/cache/.keep (renamed from example/caches/MapImageCache/.keep) | 0 | ||||
-rw-r--r-- | example/var/cache/DataSnapshot/.keep (renamed from example/caches/MeshCache/.keep) | 0 | ||||
-rw-r--r-- | example/var/cache/MapImageCache/.keep (renamed from example/caches/ScriptEngines/.keep) | 0 | ||||
-rw-r--r-- | example/var/cache/MeshCache/.keep (renamed from example/caches/addin-db-001/.keep) | 0 | ||||
-rw-r--r-- | example/var/cache/ScriptEngines/.keep (renamed from example/caches/addin-db-002/.keep) | 0 | ||||
-rw-r--r-- | example/var/cache/addin-db-001/.keep (renamed from example/caches/addin-db-003/.keep) | 0 | ||||
-rw-r--r-- | example/var/cache/addin-db-002/.keep (renamed from example/caches/addin-db-004/.keep) | 0 | ||||
-rw-r--r-- | example/var/cache/addin-db-003/.keep (renamed from example/caches/assetcache/.keep) | 0 | ||||
-rw-r--r-- | example/var/cache/addin-db-004/.keep (renamed from example/caches/assetcache/j2k/.keep) | 0 | ||||
-rw-r--r-- | example/var/cache/assetcache/.keep (renamed from example/caches/bakes/.keep) | 0 | ||||
-rw-r--r-- | example/var/cache/assetcache/j2k/.keep (renamed from example/caches/j2kDecodeCache/.keep) | 0 | ||||
-rw-r--r-- | example/var/cache/bakes/.keep (renamed from example/caches/maptiles/.keep) | 0 | ||||
-rw-r--r-- | example/var/cache/j2kDecodeCache/.keep (renamed from example/db/.keep) | 0 | ||||
-rw-r--r-- | example/var/cache/maptiles/.keep (renamed from example/logs/.keep) | 0 | ||||
-rw-r--r-- | example/var/lib/.keep | 0 | ||||
-rw-r--r-- | example/var/lib/db/.keep | 0 | ||||
-rw-r--r-- | example/var/lib/users/.keep | 0 | ||||
-rw-r--r-- | example/var/log/.keep | 0 | ||||
-rw-r--r-- | example/var/run/.keep | 0 | ||||
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 8 |
37 files changed, 42 insertions, 37 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index cc449af..187ed4f 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -1306,12 +1306,12 @@ namespace OpenSim.Framework | |||
1306 | 1306 | ||
1307 | public static string dbDir() | 1307 | public static string dbDir() |
1308 | { | 1308 | { |
1309 | return Path.Combine("..", Path.Combine("..", "db")); | 1309 | return Path.Combine("..", Path.Combine("..", "var/lib/db")); |
1310 | } | 1310 | } |
1311 | 1311 | ||
1312 | public static string cacheDir() | 1312 | public static string cacheDir() |
1313 | { | 1313 | { |
1314 | return Path.Combine("..", Path.Combine("..", "caches")); | 1314 | return Path.Combine("..", Path.Combine("..", "var/cache")); |
1315 | } | 1315 | } |
1316 | 1316 | ||
1317 | public static string configDir() | 1317 | public static string configDir() |
@@ -1327,7 +1327,7 @@ namespace OpenSim.Framework | |||
1327 | 1327 | ||
1328 | public static string logsDir() | 1328 | public static string logsDir() |
1329 | { | 1329 | { |
1330 | return Path.Combine("..", "logs"); | 1330 | return Path.Combine("..", "var/log"); |
1331 | } | 1331 | } |
1332 | 1332 | ||
1333 | public static string webDir() | 1333 | public static string webDir() |
diff --git a/OpenSim/Region/ScriptEngine/Shared/AssemblyResolver.cs b/OpenSim/Region/ScriptEngine/Shared/AssemblyResolver.cs index 6c42e2e..b1c85c8 100644 --- a/OpenSim/Region/ScriptEngine/Shared/AssemblyResolver.cs +++ b/OpenSim/Region/ScriptEngine/Shared/AssemblyResolver.cs | |||
@@ -44,7 +44,7 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
44 | string dirName = myDomain.FriendlyName; | 44 | string dirName = myDomain.FriendlyName; |
45 | string ScriptEnginesPath = myDomain.SetupInformation.PrivateBinPath; | 45 | string ScriptEnginesPath = myDomain.SetupInformation.PrivateBinPath; |
46 | 46 | ||
47 | string[] pathList = new string[] {"", "caches", ScriptEnginesPath, | 47 | string[] pathList = new string[] {"", "var/cache", ScriptEnginesPath, |
48 | Path.Combine(ScriptEnginesPath, dirName)}; | 48 | Path.Combine(ScriptEnginesPath, dirName)}; |
49 | 49 | ||
50 | string assemblyName = args.Name; | 50 | string assemblyName = args.Name; |
diff --git a/OpenSim/Tests/Robust/Server/DemonServer.cs b/OpenSim/Tests/Robust/Server/DemonServer.cs index 41c2185..fa0c958 100644 --- a/OpenSim/Tests/Robust/Server/DemonServer.cs +++ b/OpenSim/Tests/Robust/Server/DemonServer.cs | |||
@@ -48,8 +48,8 @@ namespace Robust.Tests | |||
48 | [SetUp] | 48 | [SetUp] |
49 | public void StartDemon() | 49 | public void StartDemon() |
50 | { | 50 | { |
51 | if (File.Exists("../../logs/Robust.Tests.log")) | 51 | if (File.Exists("../../var/log/Robust.Tests.log")) |
52 | File.Delete("../../logs/Robust.Tests.log"); | 52 | File.Delete("../../var/log/Robust.Tests.log"); |
53 | 53 | ||
54 | Console.WriteLine("**** Starting demon Robust server ****"); | 54 | Console.WriteLine("**** Starting demon Robust server ****"); |
55 | m_demon = new Thread( () => Main(new string[] {"-inifile=Robust.Tests.ini"})); | 55 | m_demon = new Thread( () => Main(new string[] {"-inifile=Robust.Tests.ini"})); |
diff --git a/bin/OpenSim.ConsoleClient.exe.config b/bin/OpenSim.ConsoleClient.exe.config index 6542517..b117c3c 100644 --- a/bin/OpenSim.ConsoleClient.exe.config +++ b/bin/OpenSim.ConsoleClient.exe.config | |||
@@ -18,7 +18,7 @@ | |||
18 | </appender> | 18 | </appender> |
19 | 19 | ||
20 | <appender name="LogFileAppender" type="log4net.Appender.FileAppender"> | 20 | <appender name="LogFileAppender" type="log4net.Appender.FileAppender"> |
21 | <file value="../../logs/OpenSim.ConsoleClient.log" /> | 21 | <file value="../../var/log/OpenSim.ConsoleClient.log" /> |
22 | <appendToFile value="true" /> | 22 | <appendToFile value="true" /> |
23 | <layout type="log4net.Layout.PatternLayout"> | 23 | <layout type="log4net.Layout.PatternLayout"> |
24 | <conversionPattern value="%date %-5level - %logger %message%newline" /> | 24 | <conversionPattern value="%date %-5level - %logger %message%newline" /> |
diff --git a/bin/OpenSim.exe.config b/bin/OpenSim.exe.config index ed250b3..1f2ef14 100644 --- a/bin/OpenSim.exe.config +++ b/bin/OpenSim.exe.config | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> | 24 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> |
25 | <threshold value="DEBUG" /> | 25 | <threshold value="DEBUG" /> |
26 | <file value="../../logs/OpenSim.log" /> | 26 | <file value="../../var/log/OpenSim.log" /> |
27 | <rollingStyle value="Date" /> | 27 | <rollingStyle value="Date" /> |
28 | <datePattern value="'.'yyyy-MM-dd"/> | 28 | <datePattern value="'.'yyyy-MM-dd"/> |
29 | <appendToFile value="true" /> | 29 | <appendToFile value="true" /> |
@@ -37,7 +37,7 @@ | |||
37 | </appender> | 37 | </appender> |
38 | 38 | ||
39 | <appender name="StatsLogFileAppender" type="log4net.Appender.FileAppender"> | 39 | <appender name="StatsLogFileAppender" type="log4net.Appender.FileAppender"> |
40 | <file value="../../logs/OpenSimStats.log"/> | 40 | <file value="../../var/log/OpenSimStats.log"/> |
41 | <appendToFile value="true" /> | 41 | <appendToFile value="true" /> |
42 | <layout type="log4net.Layout.PatternLayout"> | 42 | <layout type="log4net.Layout.PatternLayout"> |
43 | <conversionPattern value="%date - %message%newline" /> | 43 | <conversionPattern value="%date - %message%newline" /> |
diff --git a/bin/Robust.Tests.dll.config b/bin/Robust.Tests.dll.config index cc0bead..f327ee8 100644 --- a/bin/Robust.Tests.dll.config +++ b/bin/Robust.Tests.dll.config | |||
@@ -22,7 +22,7 @@ | |||
22 | </appender> | 22 | </appender> |
23 | 23 | ||
24 | <appender name="LogFileAppender" type="log4net.Appender.FileAppender"> | 24 | <appender name="LogFileAppender" type="log4net.Appender.FileAppender"> |
25 | <file value="../../logs/Robust.Tests.log" /> | 25 | <file value="../../var/log/Robust.Tests.log" /> |
26 | <appendToFile value="true" /> | 26 | <appendToFile value="true" /> |
27 | <filter type="log4net.Filter.LoggerMatchFilter"> | 27 | <filter type="log4net.Filter.LoggerMatchFilter"> |
28 | <loggerToMatch value="special"/> | 28 | <loggerToMatch value="special"/> |
diff --git a/bin/Robust.exe.config b/bin/Robust.exe.config index f5379ff..d3c835f 100644 --- a/bin/Robust.exe.config +++ b/bin/Robust.exe.config | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> | 24 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> |
25 | <threshold value="DEBUG" /> | 25 | <threshold value="DEBUG" /> |
26 | <file value="../../logs/Robust.log" /> | 26 | <file value="../../var/log/Robust.log" /> |
27 | <rollingStyle value="Date" /> | 27 | <rollingStyle value="Date" /> |
28 | <datePattern value="'.'yyyy-MM-dd"/> | 28 | <datePattern value="'.'yyyy-MM-dd"/> |
29 | <appendToFile value="true" /> | 29 | <appendToFile value="true" /> |
@@ -37,7 +37,7 @@ | |||
37 | </appender> | 37 | </appender> |
38 | 38 | ||
39 | <appender name="StatsLogFileAppender" type="log4net.Appender.FileAppender"> | 39 | <appender name="StatsLogFileAppender" type="log4net.Appender.FileAppender"> |
40 | <file value="../../logs/RobustStats.log"/> | 40 | <file value="../../var/log/RobustStats.log"/> |
41 | <appendToFile value="true" /> | 41 | <appendToFile value="true" /> |
42 | <layout type="log4net.Layout.PatternLayout"> | 42 | <layout type="log4net.Layout.PatternLayout"> |
43 | <conversionPattern value="%date - %message%newline" /> | 43 | <conversionPattern value="%date - %message%newline" /> |
diff --git a/bin/Robust.ini b/bin/Robust.ini index 34d996b..9c54de7 100644 --- a/bin/Robust.ini +++ b/bin/Robust.ini | |||
@@ -42,7 +42,7 @@ | |||
42 | [Startup] | 42 | [Startup] |
43 | ; Place to create a PID file | 43 | ; Place to create a PID file |
44 | ; If no path if specified then a PID file is not created. | 44 | ; If no path if specified then a PID file is not created. |
45 | PIDFile = "${Paths|CachePath}/ROBUST.pid" | 45 | PIDFile = "${Paths|PIDPath}/ROBUST.pid" |
46 | 46 | ||
47 | ; Plugin Registry Location | 47 | ; Plugin Registry Location |
48 | ; Set path to directory for plugin registry. Information | 48 | ; Set path to directory for plugin registry. Information |
diff --git a/bin/config-include/config_DG.ini b/bin/config-include/config_DG.ini index 59e54cd..27178c2 100644 --- a/bin/config-include/config_DG.ini +++ b/bin/config-include/config_DG.ini | |||
@@ -13,11 +13,12 @@ | |||
13 | 13 | ||
14 | [Paths] | 14 | [Paths] |
15 | AssetsPath = "../../AssetFiles" | 15 | AssetsPath = "../../AssetFiles" |
16 | BackupPath = "../../backups" | 16 | BackupPath = "../../var/backups" |
17 | CachePath = "../../caches" | 17 | CachePath = "../../var/cache" |
18 | ConfigPath = "../../config" | 18 | ConfigPath = "../../config" |
19 | DbPath = "../../db" | 19 | DbPath = "../../var/lib/db" |
20 | LogPath = "../../logs" | 20 | LogPath = "../../var/log" |
21 | PIDPath = "../../var/run" | ||
21 | WebPath = "../../web" | 22 | WebPath = "../../web" |
22 | 23 | ||
23 | [Const] | 24 | [Const] |
diff --git a/bin/config-include/config_IG.ini b/bin/config-include/config_IG.ini index d1f1e19..ce43cbd 100644 --- a/bin/config-include/config_IG.ini +++ b/bin/config-include/config_IG.ini | |||
@@ -13,11 +13,12 @@ | |||
13 | 13 | ||
14 | [Paths] | 14 | [Paths] |
15 | AssetsPath = "../../AssetFiles" | 15 | AssetsPath = "../../AssetFiles" |
16 | BackupPath = "../../backups" | 16 | BackupPath = "../../var/backups" |
17 | CachePath = "../../caches" | 17 | CachePath = "../../var/cache" |
18 | ConfigPath = "../../config" | 18 | ConfigPath = "../../config" |
19 | DbPath = "../../db" | 19 | DbPath = "../../var/lib/db" |
20 | LogPath = "../../logs" | 20 | LogPath = "../../var/log" |
21 | PIDPath = "../../var/run" | ||
21 | WebPath = "../../web" | 22 | WebPath = "../../web" |
22 | 23 | ||
23 | [Const] | 24 | [Const] |
diff --git a/bin/config-include/config_MG.ini b/bin/config-include/config_MG.ini index be46dc2..59eb2f1 100644 --- a/bin/config-include/config_MG.ini +++ b/bin/config-include/config_MG.ini | |||
@@ -13,11 +13,12 @@ | |||
13 | 13 | ||
14 | [Paths] | 14 | [Paths] |
15 | AssetsPath = "../../AssetFiles" | 15 | AssetsPath = "../../AssetFiles" |
16 | BackupPath = "../../backups" | 16 | BackupPath = "../../var/backups" |
17 | CachePath = "../../caches" | 17 | CachePath = "../../var/cache" |
18 | ConfigPath = "../../config" | 18 | ConfigPath = "../../config" |
19 | DbPath = "../../db" | 19 | DbPath = "../../var/lib/db" |
20 | LogPath = "../../logs" | 20 | LogPath = "../../var/log" |
21 | PIDPath = "../../var/run" | ||
21 | WebPath = "../../web" | 22 | WebPath = "../../web" |
22 | 23 | ||
23 | [Const] | 24 | [Const] |
diff --git a/bin/config-include/config_localhost.ini b/bin/config-include/config_localhost.ini index 830f173..7abd30e 100644 --- a/bin/config-include/config_localhost.ini +++ b/bin/config-include/config_localhost.ini | |||
@@ -13,11 +13,12 @@ | |||
13 | 13 | ||
14 | [Paths] | 14 | [Paths] |
15 | AssetsPath = "../../AssetFiles" | 15 | AssetsPath = "../../AssetFiles" |
16 | BackupPath = "../../backups" | 16 | BackupPath = "../../var/backups" |
17 | CachePath = "../../caches" | 17 | CachePath = "../../var/cache" |
18 | ConfigPath = "../../config" | 18 | ConfigPath = "../../config" |
19 | DbPath = "../../db" | 19 | DbPath = "../../var/lib/db" |
20 | LogPath = "../../logs" | 20 | LogPath = "../../var/log" |
21 | PIDPath = "../../var/run" | ||
21 | WebPath = "../../web" | 22 | WebPath = "../../web" |
22 | 23 | ||
23 | [Const] | 24 | [Const] |
diff --git a/example/backups/.keep b/example/config/ROBUST/.keep index e69de29..e69de29 100644 --- a/example/backups/.keep +++ b/example/config/ROBUST/.keep | |||
diff --git a/example/config/config.ini b/example/config/config.ini index e95b04c..03182fa 100644 --- a/example/config/config.ini +++ b/example/config/config.ini | |||
@@ -13,11 +13,12 @@ | |||
13 | 13 | ||
14 | [Paths] | 14 | [Paths] |
15 | AssetsPath = "../../AssetFiles" | 15 | AssetsPath = "../../AssetFiles" |
16 | BackupPath = "../../backups" | 16 | BackupPath = "../../var/backups" |
17 | CachePath = "../../caches" | 17 | CachePath = "../../var/cache" |
18 | ConfigPath = "../../config" | 18 | ConfigPath = "../../config" |
19 | DbPath = "../../db" | 19 | DbPath = "../../var/lib/db" |
20 | LogPath = "../../logs" | 20 | LogPath = "../../var/log" |
21 | PIDPath = "../../var/run" | ||
21 | WebPath = "../../web" | 22 | WebPath = "../../web" |
22 | 23 | ||
23 | [Const] | 24 | [Const] |
diff --git a/example/caches/.keep b/example/var/.keep index e69de29..e69de29 100644 --- a/example/caches/.keep +++ b/example/var/.keep | |||
diff --git a/example/caches/DataSnapshot/.keep b/example/var/backups/.keep index e69de29..e69de29 100644 --- a/example/caches/DataSnapshot/.keep +++ b/example/var/backups/.keep | |||
diff --git a/example/backups/DefaultMember.IAR b/example/var/backups/Default_Member.IAR index 67b95cf..cfddb83 100644 --- a/example/backups/DefaultMember.IAR +++ b/example/var/backups/Default_Member.IAR | |||
Binary files differ | |||
diff --git a/example/caches/MapImageCache/.keep b/example/var/cache/.keep index e69de29..e69de29 100644 --- a/example/caches/MapImageCache/.keep +++ b/example/var/cache/.keep | |||
diff --git a/example/caches/MeshCache/.keep b/example/var/cache/DataSnapshot/.keep index e69de29..e69de29 100644 --- a/example/caches/MeshCache/.keep +++ b/example/var/cache/DataSnapshot/.keep | |||
diff --git a/example/caches/ScriptEngines/.keep b/example/var/cache/MapImageCache/.keep index e69de29..e69de29 100644 --- a/example/caches/ScriptEngines/.keep +++ b/example/var/cache/MapImageCache/.keep | |||
diff --git a/example/caches/addin-db-001/.keep b/example/var/cache/MeshCache/.keep index e69de29..e69de29 100644 --- a/example/caches/addin-db-001/.keep +++ b/example/var/cache/MeshCache/.keep | |||
diff --git a/example/caches/addin-db-002/.keep b/example/var/cache/ScriptEngines/.keep index e69de29..e69de29 100644 --- a/example/caches/addin-db-002/.keep +++ b/example/var/cache/ScriptEngines/.keep | |||
diff --git a/example/caches/addin-db-003/.keep b/example/var/cache/addin-db-001/.keep index e69de29..e69de29 100644 --- a/example/caches/addin-db-003/.keep +++ b/example/var/cache/addin-db-001/.keep | |||
diff --git a/example/caches/addin-db-004/.keep b/example/var/cache/addin-db-002/.keep index e69de29..e69de29 100644 --- a/example/caches/addin-db-004/.keep +++ b/example/var/cache/addin-db-002/.keep | |||
diff --git a/example/caches/assetcache/.keep b/example/var/cache/addin-db-003/.keep index e69de29..e69de29 100644 --- a/example/caches/assetcache/.keep +++ b/example/var/cache/addin-db-003/.keep | |||
diff --git a/example/caches/assetcache/j2k/.keep b/example/var/cache/addin-db-004/.keep index e69de29..e69de29 100644 --- a/example/caches/assetcache/j2k/.keep +++ b/example/var/cache/addin-db-004/.keep | |||
diff --git a/example/caches/bakes/.keep b/example/var/cache/assetcache/.keep index e69de29..e69de29 100644 --- a/example/caches/bakes/.keep +++ b/example/var/cache/assetcache/.keep | |||
diff --git a/example/caches/j2kDecodeCache/.keep b/example/var/cache/assetcache/j2k/.keep index e69de29..e69de29 100644 --- a/example/caches/j2kDecodeCache/.keep +++ b/example/var/cache/assetcache/j2k/.keep | |||
diff --git a/example/caches/maptiles/.keep b/example/var/cache/bakes/.keep index e69de29..e69de29 100644 --- a/example/caches/maptiles/.keep +++ b/example/var/cache/bakes/.keep | |||
diff --git a/example/db/.keep b/example/var/cache/j2kDecodeCache/.keep index e69de29..e69de29 100644 --- a/example/db/.keep +++ b/example/var/cache/j2kDecodeCache/.keep | |||
diff --git a/example/logs/.keep b/example/var/cache/maptiles/.keep index e69de29..e69de29 100644 --- a/example/logs/.keep +++ b/example/var/cache/maptiles/.keep | |||
diff --git a/example/var/lib/.keep b/example/var/lib/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/example/var/lib/.keep | |||
diff --git a/example/var/lib/db/.keep b/example/var/lib/db/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/example/var/lib/db/.keep | |||
diff --git a/example/var/lib/users/.keep b/example/var/lib/users/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/example/var/lib/users/.keep | |||
diff --git a/example/var/log/.keep b/example/var/log/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/example/var/log/.keep | |||
diff --git a/example/var/run/.keep b/example/var/run/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/example/var/run/.keep | |||
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 79a3b57..1bcf873 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -1623,7 +1623,7 @@ int checkSimIsRunning(char *sim) | |||
1623 | struct stat st; | 1623 | struct stat st; |
1624 | 1624 | ||
1625 | // Check if it's running. | 1625 | // Check if it's running. |
1626 | char *path = xmprintf("%s/caches/%s.pid", scRoot, sim); | 1626 | char *path = xmprintf("%s/%s.pid", scRun, sim); |
1627 | if (0 == stat(path, &st)) | 1627 | if (0 == stat(path, &st)) |
1628 | { | 1628 | { |
1629 | int fd, i; | 1629 | int fd, i; |
@@ -1651,7 +1651,7 @@ int checkSimIsRunning(char *sim) | |||
1651 | if (0 != WEXITSTATUS(i)) // No such pid. | 1651 | if (0 != WEXITSTATUS(i)) // No such pid. |
1652 | { | 1652 | { |
1653 | free(path); | 1653 | free(path); |
1654 | path = xmprintf("rm -f %s/caches/%s.pid", scRoot, sim); | 1654 | path = xmprintf("rm -f %s/%s.pid", scRun, sim); |
1655 | d("%s", path); | 1655 | d("%s", path); |
1656 | i = system(path); | 1656 | i = system(path); |
1657 | if (WIFEXITED(i)) | 1657 | if (WIFEXITED(i)) |
@@ -1672,7 +1672,7 @@ int checkSimIsRunning(char *sim) | |||
1672 | 1672 | ||
1673 | // Now check if it's really really running. lol | 1673 | // Now check if it's really really running. lol |
1674 | free(path); | 1674 | free(path); |
1675 | path = xmprintf("%s/caches/%s.pid", scRoot, sim); | 1675 | path = xmprintf("%s/%s.pid", scRun, sim); |
1676 | if (0 == stat(path, &st)) | 1676 | if (0 == stat(path, &st)) |
1677 | { | 1677 | { |
1678 | D("checkSimIsRunning(%s) -> %s is really really running.", sim, path); | 1678 | D("checkSimIsRunning(%s) -> %s is really really running.", sim, path); |
@@ -1745,7 +1745,7 @@ void prepSims(simData *simd, char *sim, char *type, int count, int window, int p | |||
1745 | " -e 's@\\[Region\\]@" | 1745 | " -e 's@\\[Region\\]@" |
1746 | " paneID = \"\\%s\"\\n" | 1746 | " paneID = \"\\%s\"\\n" |
1747 | "\\[Startup\\]\\n" | 1747 | "\\[Startup\\]\\n" |
1748 | " PIDFile = \"\\$\\{Paths\\|CachePath\\}\\/\\$\\{Const\\|mysim\\}\\.pid\"\\n" | 1748 | " PIDFile = \"\\$\\{Paths\\|PIDPath\\}\\/\\$\\{Const\\|mysim\\}\\.pid\"\\n" |
1749 | " LogFile = \"\\$\\{Paths\\|LogPath\\}\\/OpenSim_\\$\\{Const\\|mysim\\}\\.log\"\\n" | 1749 | " LogFile = \"\\$\\{Paths\\|LogPath\\}\\/OpenSim_\\$\\{Const\\|mysim\\}\\.log\"\\n" |
1750 | " StatsLogFile = \"\\$\\{Paths\\|LogPath\\}\\/OpenSimStats_\\$\\{Const\\|mysim\\}\\.log\"\\n" | 1750 | " StatsLogFile = \"\\$\\{Paths\\|LogPath\\}\\/OpenSimStats_\\$\\{Const\\|mysim\\}\\.log\"\\n" |
1751 | " ConsoleHistoryFile = \"\\$\\{Paths\\|LogPath\\}\\/OpenSimConsoleHistory_\\$\\{Const\\|mysim\\}\\.txt\"\\n" | 1751 | " ConsoleHistoryFile = \"\\$\\{Paths\\|LogPath\\}\\/OpenSimConsoleHistory_\\$\\{Const\\|mysim\\}\\.txt\"\\n" |