Jump to content

Hello! 👋

These forums are now archived (read only).

Join us on Discord.

a way to do linux service, in a good way.


Recommended Posts

Right now you have to execute the linux server as the user itself, because systemd(servicemanager for linux) doesnt provide a home directory.

And the  config files are located in the home directory.

You should store your config in /etc/{wathever you wan to use} so you dont have to use the $HOME variable for the service, this makes the service runnable and changing the location of the config file to here also makes it so the configuration is userindependent. I think this is supposed to be with the new service system. Storing the config in a users directory makes things complecated and you(the program) have no idea where its actually stored when the service starts(before the user is logged in).

You can have user specific configs, checking if a replacement config exists in the user directory on login and then switching to that.

The only reason your service actually crashes on linux is because of the fact that there is not $HOME set yet, for the rest it runs.

Link to post
Share on other sites
1 hour ago, Nick Bolton said:

This will be fixed in beta5 (due in 4-5 weeks). Need a refund? [email protected]

haha, no I dont need a refund :) this is just a suggestion on how to do it, since the current way is system wide and doesnt work on linux.

 

Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...