|
@@ -957,10 +957,10 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
|
|
|
public void restart() {
|
|
|
log.info("restart=============");
|
|
|
try {
|
|
|
- Process proc = Runtime.getRuntime().exec("/opt/streams", null, null);
|
|
|
+ Process proc = Runtime.getRuntime().exec("/bin/bash", null, null);
|
|
|
BufferedReader in = new BufferedReader(new InputStreamReader(proc.getInputStream()));
|
|
|
PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(proc.getOutputStream())), true);
|
|
|
- String commit = "sh restartStreams.sh";
|
|
|
+ String commit = "sh /opt/streams/restartStreams.sh";
|
|
|
List<String> commands = new ArrayList<>();
|
|
|
|
|
|
// 删除
|