|
|
|
@ -15,6 +15,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
@ -85,4 +86,11 @@ public class CmdController extends BaseController {
|
|
|
|
|
return ResponseReult.success(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("restartXymp")
|
|
|
|
|
public ResponseReult<String> restartXymp() throws Exception {
|
|
|
|
|
String cmd = "touch /home/xymp/lock/RESTART.lock";
|
|
|
|
|
Runtime.getRuntime().exec(cmd);
|
|
|
|
|
return ResponseReult.success("OK");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|