You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, btcd uses %LOCALAPPDATA% for the application data directory. This means when btcd runs, the chain data, config file, logs, etc all go to a separate directory depending on the user it is running as.
The intent is for btcd to share this information, so saving this information on a per-user basis is not desirable.
This becomes particularly apparent with the recent addition of the Windows service code where the data goes to the service account when running as a service, but to the user's account when running as a user.
The text was updated successfully, but these errors were encountered:
Will it be supported on Linux to run btcd in daemon mode as its own user, and then allow the gui to started as a different user(s)?
In that case, for full FHS compliance the config file should be /etc/btcd.conf and the other files should be in the appropriate subdirectories of /var (/var/lib/btcd, /var/tmp/btcd, perhaps also /var/cache/btcd)
The idea for btcd to run as a daemon on Linux/Unix is to use either the system tools or one of the myriad applications that already exist for daemonizing applications. Some examples are upstart, systemd, launchd, daemontools, supervisord, and runit.
The reason for this is a Go program can't daemonize itself like a C/C++ program due to threads. By the time main is called in a Go program, it is already multi-threaded, so it's too late to daemonize. There is a growing school of thought that programs daemonizing themselves isn't necessarily a good idea anyways and it seems Go prescribes to this line of thinking.
FHS compliance is a good thing, but I suspect there will need to be some way to configure it since not all *nix OSes follow it.
Currently, btcd uses %LOCALAPPDATA% for the application data directory. This means when btcd runs, the chain data, config file, logs, etc all go to a separate directory depending on the user it is running as.
The intent is for btcd to share this information, so saving this information on a per-user basis is not desirable.
This becomes particularly apparent with the recent addition of the Windows service code where the data goes to the service account when running as a service, but to the user's account when running as a user.
The text was updated successfully, but these errors were encountered: