Skip to content

Commit dc8f419

Browse files
committed
trying only a stop service, no start
1 parent 2f9fda5 commit dc8f419

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

include/botui/Create3Widget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private slots:
3939
int m_position_1;
4040
double m_vel_1;
4141

42-
QProcess *startCreate3Service;
42+
// QProcess *startCreate3Service;
4343
QProcess *stopCreate3Service;
4444

4545
};

src/Create3Widget.cpp

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Create3Widget::Create3Widget(Device *device, QWidget *parent)
4242
connect(ui->Create3SensorListButton, SIGNAL(clicked()), SLOT(sensorList()));
4343
connect(ui->Create3ExampleProgramButton, SIGNAL(clicked()), SLOT(exampleList()));
4444

45-
startCreate3Service = new QProcess(this);
45+
// startCreate3Service = new QProcess(this);
4646
stopCreate3Service = new QProcess(this);
4747

4848
ui->create3IP->setText(getIP());
@@ -140,27 +140,27 @@ void Create3Widget::resetServer()
140140
qDebug() << "Create3 Server failed to stop or crashed.";
141141
}
142142

143-
QString startCommand = "sudo";
144-
QStringList startArgs = {
145-
"systemctl",
146-
"start",
147-
"create3_server.service"
148-
};
149-
150-
connect(startCreate3Service, &QProcess::readyReadStandardError, [=]() {
151-
QByteArray data = startCreate3Service->readAllStandardError();
152-
qDebug() << "Error:" << data;
153-
});
154-
155-
// Start process to start server
156-
if (startCreate3Service->startDetached(startCommand, startArgs))
157-
{
158-
qDebug() << "Create3 Server successfully started";
159-
}
160-
else
161-
{
162-
qDebug() << "Create3 Server failed to start or crashed.";
163-
}
143+
// QString startCommand = "sudo";
144+
// QStringList startArgs = {
145+
// "systemctl",
146+
// "start",
147+
// "create3_server.service"
148+
// };
149+
150+
// connect(startCreate3Service, &QProcess::readyReadStandardError, [=]() {
151+
// QByteArray data = startCreate3Service->readAllStandardError();
152+
// qDebug() << "Error:" << data;
153+
// });
154+
155+
// // Start process to start server
156+
// if (startCreate3Service->startDetached(startCommand, startArgs))
157+
// {
158+
// qDebug() << "Create3 Server successfully started";
159+
// }
160+
// else
161+
// {
162+
// qDebug() << "Create3 Server failed to start or crashed.";
163+
// }
164164
}
165165

166166
void Create3Widget::sensorList()

0 commit comments

Comments
 (0)