Skip to content

Commit eb59c3c

Browse files
committed
CLOUDSTACK-4314: fix dir error in ProcessUtil.pidCheck and Revert commit 9375aa9
1 parent 39ed13a commit eb59c3c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎utils/src/com/cloud/utils/ProcessUtil.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static void pidCheck(String pidDir, String run) throws ConfigurationExcep
5050
finputstream.close();
5151
dir = props.getProperty("paths.pid");
5252
if (dir == null) {
53-
dir = "/var/run";
53+
dir = pidDir==null?"/var/run":pidDir;
5454
}
5555
}
5656
} catch (IOException e) {

‎utils/test/com/cloud/utils/ProcessUtilTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class ProcessUtilTest {
3636

3737
@Before
3838
public void setup() throws IOException {
39-
pidFile = File.createTempFile("test", ".pid", new File("/var/run"));
39+
pidFile = File.createTempFile("test", ".pid");
4040
}
4141

4242
@After

0 commit comments

Comments
 (0)