Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I need to make a service use qt console application #21

Open
yanchenyuvip opened this issue Apr 21, 2021 · 3 comments
Open

I need to make a service use qt console application #21

yanchenyuvip opened this issue Apr 21, 2021 · 3 comments

Comments

@yanchenyuvip
Copy link

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.

@Skycoder42
Copy link
Owner

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

@yanchenyuvip
Copy link
Author

您应该适当地阅读有关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

@Skycoder42
Copy link
Owner

Have you tried the example in the repository?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants