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

[Feature Request]: FreeData server running under systemcontrol #810

Open
pa1er opened this issue Sep 18, 2024 · 12 comments
Open

[Feature Request]: FreeData server running under systemcontrol #810

pa1er opened this issue Sep 18, 2024 · 12 comments

Comments

@pa1er
Copy link

pa1er commented Sep 18, 2024

Problem Description

You have to run the server from a terminal. When using Linux connected to the TRX you always have to have an open terminal to keep it running. When starting the server under the systemctl (freedata.service) this problem can be resolved in a simple way.

Proposed Solution

Creating a freedata.service file and copy it to the right location to be able to start the server from systemctl

Alternatives Considered

Any other way to let the server running out of a terminal

Additional Information

No response

@DJ2LS
Copy link
Owner

DJ2LS commented Sep 18, 2024

@pa1er thats an interesting feature request. Thanks!

@deejdeej what do you think regarding to this?

Personally I had several problems with services in past, so I'm concerned a bit about stability. Also the problems with debugging, specially for inexperienced users. Is there a chance, making this optional? Maybe a separated step part of the installation instructions? Nevertheless I like this as it's making the usage probably more lightweight as it is running in background ( this is a pro and con as well )

@DJ2LS DJ2LS added this to FreeDATA Sep 18, 2024
@DJ2LS DJ2LS moved this to Backlog in FreeDATA Sep 18, 2024
@pa1er
Copy link
Author

pa1er commented Sep 18, 2024

If you define the services than you don have to switch them on by default. In stead of starting with the run script you will than start with 'systemctl start freedata' or stop etc.

@DJ2LS
Copy link
Owner

DJ2LS commented Sep 18, 2024

So to me it looks like, we just have to adjust the installation instructions as this is something each user can or should do by him/herself?

@deejdeej
Copy link
Collaborator

You don't actually have to run the server from a terminal. You can create a shortcut on the desktop and double click the icon to run it (which will then open a terminal automatically and run the software).

I could create a sample shortcut under the Linux tools section if you think that would be useful. Here are manual instructions:

https://linuxconfig.org/how-to-create-desktop-shortcuts-in-linux

@DJ2LS
Copy link
Owner

DJ2LS commented Sep 18, 2024

If you define the services than you don have to switch them on by default. In stead of starting with the run script you will than start with 'systemctl start freedata' or stop etc.

I think the service config should lead to the startup script so we have an equal way of starting FreeDATA

@DJ2LS
Copy link
Owner

DJ2LS commented Sep 18, 2024

You don't actually have to run the server from a terminal. You can create a shortcut on the desktop and double click the icon to run it (which will then open a terminal automatically and run the software).

I could create a sample shortcut under the Linux tools section if you think that would be useful. Here are manual instructions:

https://linuxconfig.org/how-to-create-desktop-shortcuts-in-linux

Sounds to me like another options.

So we have two additional startup topics:

  • as system service
  • by desktop icon

@deejdeej
Copy link
Collaborator

I've added two files to the tools/Linux section in the develop branch.
README-Desktop-icon.txt - Instructions for setting up the Desktop icon
FreeDATA.desktop - the Desktop icon file

@DJ2LS Do we have a FreeDATA icon (graphics)? If so, I can add that so it displays on the Desktop instead of the default symbol.

@pa1er
Copy link
Author

pa1er commented Sep 18, 2024

For me the desktop-item is not really working. I am using the Ubuntu server as a real server, so try to avoid using the screen. I connect with my laptop to a remote desktop OR the web interface of freeData. That's why systemservices are so great. And by by using the enable command (systemctl enable .....) you create the link for the startup after a reboot (or disable to remove the link)
By using a terminal or desktop-icon you always need the screen or a connection to a terminal. Systemservices keep running after connection to terminal or screen are gone. So also nice to monitor the freq when you are away.

@DJ2LS
Copy link
Owner

DJ2LS commented Sep 18, 2024

I've added two files to the tools/Linux section in the develop branch.

README-Desktop-icon.txt - Instructions for setting up the Desktop icon

FreeDATA.desktop - the Desktop icon file

@DJ2LS Do we have a FreeDATA icon (graphics)? If so, I can add that so it displays on the Desktop instead of the default symbol.

Yes, in docs folder or gui public folder

@DJ2LS
Copy link
Owner

DJ2LS commented Sep 18, 2024

For me the desktop-item is not really working. I am using the Ubuntu server as a real server, so try to avoid using the screen. I connect with my laptop to a remote desktop OR the web interface of freeData. That's why systemservices are so great. And by by using the enable command (systemctl enable .....) you create the link for the startup after a reboot (or disable to remove the link)

By using a terminal or desktop-icon you always need the screen or a connection to a terminal. Systemservices keep running after connection to terminal or screen are gone. So also nice to monitor the freq when you are away.

Ah now I understand your use case. What if we create a custom service file in Linux/tools as well, then adding a command for symlink it to services folder?

Then we have a example as well. But I think this is all just a question of documentation, right?

@deejdeej
Copy link
Collaborator

Hi @pa1er ,
If you have a suggested freedata.service file, I can help you to test it and add it to the Linux tools section.

Part of the challenge is that the existing run-freedata-linux.sh script expects to run in an interactive terminal, and waits for CTRL-C to exit. I am not sure how to make that work in a systemd service file since those are designed to run non-interactive programs.

@pa1er
Copy link
Author

pa1er commented Sep 20, 2024

I will create a service that will work in my ubuntu server, For other things on my fedora server I have done this before.
I'll let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

3 participants