mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Set serviceLog from systemctl status
This commit is contained in:
		@@ -45,6 +45,9 @@ function DisplayRestAPI()
 | 
			
		||||
    exec("ps aux | grep -v grep | grep uvicorn", $output, $return);
 | 
			
		||||
    $serviceStatus = !empty($output) ? "up" : "down";
 | 
			
		||||
 | 
			
		||||
    exec("sudo systemctl status restapi.service", $output, $return);
 | 
			
		||||
    $serviceLog = implode("\n", $output);
 | 
			
		||||
 | 
			
		||||
    echo renderTemplate("restapi", compact(
 | 
			
		||||
        "status",
 | 
			
		||||
        "apiKey",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user