mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4314: fix dir error in ProcessUtil.pidCheck and Revert commit 9375aa9467
This commit is contained in:
parent
39ed13aaef
commit
eb59c3c601
|
|
@ -50,7 +50,7 @@ public class ProcessUtil {
|
|||
finputstream.close();
|
||||
dir = props.getProperty("paths.pid");
|
||||
if (dir == null) {
|
||||
dir = "/var/run";
|
||||
dir = pidDir==null?"/var/run":pidDir;
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public class ProcessUtilTest {
|
|||
|
||||
@Before
|
||||
public void setup() throws IOException {
|
||||
pidFile = File.createTempFile("test", ".pid", new File("/var/run"));
|
||||
pidFile = File.createTempFile("test", ".pid");
|
||||
}
|
||||
|
||||
@After
|
||||
|
|
|
|||
Loading…
Reference in New Issue