From 544e1c2983600ecd277577140840bea962362b2d Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 18 Aug 2021 13:21:43 +1000 Subject: Move more stuff into the var directory. --- src/sledjchisl/sledjchisl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sledjchisl') 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) struct stat st; // Check if it's running. - char *path = xmprintf("%s/caches/%s.pid", scRoot, sim); + char *path = xmprintf("%s/%s.pid", scRun, sim); if (0 == stat(path, &st)) { int fd, i; @@ -1651,7 +1651,7 @@ int checkSimIsRunning(char *sim) if (0 != WEXITSTATUS(i)) // No such pid. { free(path); - path = xmprintf("rm -f %s/caches/%s.pid", scRoot, sim); + path = xmprintf("rm -f %s/%s.pid", scRun, sim); d("%s", path); i = system(path); if (WIFEXITED(i)) @@ -1672,7 +1672,7 @@ int checkSimIsRunning(char *sim) // Now check if it's really really running. lol free(path); - path = xmprintf("%s/caches/%s.pid", scRoot, sim); + path = xmprintf("%s/%s.pid", scRun, sim); if (0 == stat(path, &st)) { 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 " -e 's@\\[Region\\]@" " paneID = \"\\%s\"\\n" "\\[Startup\\]\\n" - " PIDFile = \"\\$\\{Paths\\|CachePath\\}\\/\\$\\{Const\\|mysim\\}\\.pid\"\\n" + " PIDFile = \"\\$\\{Paths\\|PIDPath\\}\\/\\$\\{Const\\|mysim\\}\\.pid\"\\n" " LogFile = \"\\$\\{Paths\\|LogPath\\}\\/OpenSim_\\$\\{Const\\|mysim\\}\\.log\"\\n" " StatsLogFile = \"\\$\\{Paths\\|LogPath\\}\\/OpenSimStats_\\$\\{Const\\|mysim\\}\\.log\"\\n" " ConsoleHistoryFile = \"\\$\\{Paths\\|LogPath\\}\\/OpenSimConsoleHistory_\\$\\{Const\\|mysim\\}\\.txt\"\\n" -- cgit v1.1