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

Automated Installer does not properly configure systemd file #1150

Closed
jftuga opened this issue Dec 10, 2024 · 2 comments
Closed

Automated Installer does not properly configure systemd file #1150

jftuga opened this issue Dec 10, 2024 · 2 comments

Comments

@jftuga
Copy link

jftuga commented Dec 10, 2024

On Ubuntu 24.04.1 LTS, I used snap to install dotnet because it installed a newer version vs using apt:

snap install dotnet-sdk --classic

This then installs the binary to: /snap/bin/dotnet

Therefore, I needed to modify my /etc/systemd/system/dns.service file:

  • from: ExecStart=/usr/sbin/dotnet /opt/technitium/dns/DnsServerApp.dll /etc/dns
  • to: ExecStart=/snap/bin/dotnet /opt/technitium/dns/DnsServerApp.dll /opt/technitium/dns

There are two changes I made:

  • /usr/sbin/dotnet -> /snap/bin/dotnet
  • /etc/dns -> /opt/technitium/dns

Would it be possible for you to update the install.sh to properly handle the scenario?

Thank you.

@ShreyasZare
Copy link
Member

Thanks for the post. Microsoft does not recommend using snap to install dotnet. Also note that you need to install dotnet runtime only and SDK is not needed to be installed.

image

If you are manually installing dotnet then make sure that you create a link (using ln -s) so that dotnet works with /usr/bin/dotnet path. This will make the installer detect dotnet and work as expected and there wont be any need to change how the installer works.

I would recommend to allow the script to install dotnet instead of manually installing it. The reason for this is that you will have to update dotnet to the latest release manually each time you update the DNS server. If the installer has installed dotnet, it will automatically update dotnet every time you upgrade the DNS server.

@jftuga
Copy link
Author

jftuga commented Dec 14, 2024

Thanks for the follow up and detailed explanation. I really appreciate it. 😃

@jftuga jftuga closed this as completed Dec 14, 2024
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