jaap aarts

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

6 posts in this topic

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.

Share this post


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.

 

Share this post


Link to post
Share on other sites
On 9/24/2017 at 3:48 AM, Nick Bolton said:

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

did you create a hotkey for this ?

Share this post


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