Can I use systemd's StateDirectory to point to an external hard drive?
0
votes
0
answers
485
views
I noticed that I am unable to change the StateDirectory of a [blockchain](https://github.com/bitcoin/bitcoin/blob/999f8b24cca3ea3f2e19773adda4554b7e40de0c/contrib/init/bitcoind.service#L55) to an external hard drive because I believe that systemd only allows relative paths for the StateDirectory option. The reason I want to use an external hard drive is that my service's state is notoriously large. Specifically, I want to use it to store the bitcoin blockchain.
Should I simply forget about using a StateDirectory, or is there some other option? Or, do I have an incorrect concept of how to use StateDirectory entirely?
Asked by mpls
(101 rep)
Aug 21, 2021, 11:15 AM