removed restart of apism in case ISMAS is unreachable
This commit is contained in:
		@@ -584,16 +584,6 @@ bool Worker::updateTriggerSet() {
 | 
			
		||||
            CONSOLE(lst) << UPDATE_STEP::DEBUG;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if ((repeat % 8) == 0) {
 | 
			
		||||
            CONSOLE(QStringList(func) << "RESTART APISM") << UPDATE_STEP::DEBUG;
 | 
			
		||||
            Command c("systemctl restart apism");
 | 
			
		||||
            if (c.execute("/tmp")) {
 | 
			
		||||
                QThread::sleep(20); // give APISM some time to reconnect
 | 
			
		||||
                QStringList lst = (m_ismasTriggerStatusMessage = (QStringList(func) << "RESTART APISM DONE"));
 | 
			
		||||
                CONSOLE(lst) << UPDATE_STEP::DEBUG;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (std::optional<QString> result
 | 
			
		||||
                = IsmasClient::sendRequestReceiveResponse(
 | 
			
		||||
                    IsmasClient::APISM::DIRECT_PORT, "#M=APISM#C=REQ_ISMASPARAMETER#J={}")) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user