Great
I tried this:
Description=Bitcoin Blockchain Service
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=geojanbv
ExecStart=/usr/bin/env bitcoin-core.daemon -daemon
[Install]
WantedBy=multi-user.target
Then:
This works on Ubuntu-desktop but not on Ubuntu-core
Have a nice day,
Jan
I'm not really familiar by setup your own service or ubuntu-core, but try this post
1. In your VM create a file called bitcoind.service with the following contents:
Description=Run Bitcoin Core as daemon
Wants=network-online.target
After=network.target network-online.target
[Service]
Type=simple
# you may have to change the path of bitcoind
ExecStart=/usr/local/bin/bitcoind # Add command line options here at your will
RemainAfterExit=no
[Install]
WantedBy=multi-user.target
2. Put this file in /usr/lib/systemd/system
3. Run the following commands:
sudo systemctl enable bitcoind.service
sudo systemctl start bitcoind.service # alternatively just restart the VM