QtService icon indicating copy to clipboard operation
QtService copied to clipboard

I need to make a service use qt console application

Open yanchenyuvip opened this issue 3 years ago • 3 comments

There are a few questions.The environment is Centos7

1.I tyied use qt creator ,new qt console application,Create a new project TEST,create TEST.service,Then start it with this command. systemctl start TEST.service。 It can run normally.why? Qtservice Function?

2.Qtservice Can you provide a simple QT creator project? Just print the log.Or loop out UDP messages.Just need to be able to start it with a command.

systemctl start *.service

I've tried many times.It just won't start it with a command. Please forgive me, I may not know much about this.

Thanks a lot.

yanchenyuvip avatar Apr 21 '21 14:04 yanchenyuvip

You should propably read about sytemd and its services. Try to create a simple service with scripts following the official examples. Then you can come back to this project

Skycoder42 avatar Apr 21 '21 18:04 Skycoder42

您应该适当地阅读有关sytemd及其服务的信息。按照官方示例,尝试使用脚本创建简单的服务。然后你可以回到这个项目

Using Script production service, I have tried successfully. I hope you can give me a simple example of the successful creation of the called Qtservice framework. I want to compare it with the qt console project production service. Just print the log.Or loop out UDP messages.Just need to be able to start it with a command. systemctl start *.service

yanchenyuvip avatar Apr 22 '21 01:04 yanchenyuvip

Have you tried the example in the repository?

Skycoder42 avatar Apr 22 '21 16:04 Skycoder42